|
| 1 | +bundle agent strings |
| 2 | +{ |
| 3 | + vars: |
| 4 | + # Single-line promises are allowed, as long as there is only 1 attribute, |
| 5 | + # and the whole promise fits in less than 80 chars. |
| 6 | + "some_variable_name" |
| 7 | + string => "some_long_variable_value_but_not_past_80"; |
| 8 | + # Split attribute to separate line if we go over 80: |
| 9 | + "some_variable_name" |
| 10 | + string => "some_other_variable_value_which_would go_past_80"; |
| 11 | + # Also split to separate lines if more than one attribute: |
| 12 | + "some_variable_name" |
| 13 | + if => "any", |
| 14 | + string => "some_long_variable_value_but_not_past_80"; |
| 15 | + "some_variable_name" |
| 16 | +string => "sometimes strings are just too long and we cannot do anything about it, leave them as is"; |
| 17 | +} |
| 18 | + |
| 19 | +bundle agent slists |
| 20 | +{ |
| 21 | + vars: |
| 22 | + "variable_name" |
| 23 | + slist => { "one", "two", "three", "four", "five", "six" }; |
| 24 | + "variable_name" |
| 25 | + slist => { "one", "two", "three", "four", "five", "six", "seven" }; |
| 26 | + "variable_name" |
| 27 | + slist => { |
| 28 | + "one", "two", "three", "four", "five", "six", "seven", "eight" |
| 29 | + }; |
| 30 | + "variable_name" |
| 31 | + slist => { |
| 32 | + "one", |
| 33 | + "two", |
| 34 | + "three", |
| 35 | + "four", |
| 36 | + "five", |
| 37 | + "six", |
| 38 | + "seven", |
| 39 | + "eight", |
| 40 | + "ten", |
| 41 | + "eleven", |
| 42 | + }; |
| 43 | +} |
| 44 | + |
| 45 | +bundle agent function_calls |
| 46 | +{ |
| 47 | + vars: |
| 48 | + "variable_name" |
| 49 | + string => concat("one", "two", "three", "four", "five"); |
| 50 | + "variable_name" |
| 51 | + string => concat("one", "two", "three", "four", "five", "six"); |
| 52 | + "variable_name" |
| 53 | + string => concat( |
| 54 | + "one", "two", "three", "four", "five", "six", "seven", "eight" |
| 55 | + ); |
| 56 | + "variable_name" |
| 57 | + string => concat( |
| 58 | + "one", |
| 59 | + "two", |
| 60 | + "three", |
| 61 | + "four", |
| 62 | + "five", |
| 63 | + "six", |
| 64 | + "seven", |
| 65 | + "eight", |
| 66 | + "nine", |
| 67 | + "ten", |
| 68 | + ); |
| 69 | +} |
| 70 | + |
| 71 | +bundle agent nested_function_calls |
| 72 | +{ |
| 73 | + vars: |
| 74 | + "variable_name" |
| 75 | + string => concat("one", concat("two", "three", "four")); |
| 76 | + "variable_name" |
| 77 | + string => concat("one", concat("two", "three", "four", "five")); |
| 78 | + "variable_name" |
| 79 | + string => concat( |
| 80 | + "one", concat("two", "three", "four", "five", "six", "seven") |
| 81 | + ); |
| 82 | + "variable_name" |
| 83 | + string => concat( |
| 84 | + "one", |
| 85 | + concat("two", "three", "four", "five", "six", "seven", "eight", ""), |
| 86 | + ); |
| 87 | + "variable_name" |
| 88 | + string => concat( |
| 89 | + "one", |
| 90 | + concat("two", "three", "four", "five", "six", "seven", "eight", "nine", ""), |
| 91 | + ); |
| 92 | + "variable_name" |
| 93 | + string => concat( |
| 94 | + "one", |
| 95 | + concat("two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", ), |
| 96 | + ); |
| 97 | +} |
0 commit comments