|
1 | 1 | bundle agent strings |
2 | 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"; |
| 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" string => "some_long_variable_value_but_not_past_80"; |
| 7 | +# Split attribute to separate line if we go over 80: |
| 8 | +"some_variable_name" string => "some_other_variable_value_which_would go_past_80"; |
| 9 | +# Also split to separate lines if more than one attribute: |
| 10 | +"some_variable_name" |
| 11 | +if => "any", |
| 12 | +string => "some_long_variable_value_but_not_past_80"; |
| 13 | +"some_variable_name" string => "sometimes strings are just too long and we cannot do anything about it, leave them as is"; |
17 | 14 | } |
18 | 15 |
|
19 | 16 | bundle agent slists |
20 | 17 | { |
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 | | - }; |
| 18 | +vars: |
| 19 | +"variable_name" |
| 20 | +slist => { "one", "two", "three", "four", "five", "six" }; |
| 21 | +"variable_name" |
| 22 | +slist => { "one", "two", "three", "four", "five", "six", "seven" }; |
| 23 | +"variable_name" |
| 24 | +slist => { |
| 25 | +"one", "two", "three", "four", "five", "six", "seven", "eight" |
| 26 | +}; |
| 27 | +"variable_name" |
| 28 | +slist => { |
| 29 | +"one","two","three","four","five","six","seven","eight","ten","eleven", |
| 30 | +}; |
43 | 31 | } |
44 | 32 |
|
45 | 33 | bundle agent function_calls |
46 | 34 | { |
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 | | - ); |
| 35 | +vars: |
| 36 | +"variable_name" string => concat("one", "two", "three", "four", "five"); |
| 37 | +"variable_name" string => concat("one", "two", "three", "four", "five", "six"); |
| 38 | +"variable_name" string => concat( |
| 39 | +"one", "two", "three", "four", "five", "six", "seven", "eight" |
| 40 | +); |
| 41 | +"variable_name" string => concat( |
| 42 | +"one","two","three","four","five","six","seven","eight","nine","ten", |
| 43 | +); |
69 | 44 | } |
70 | 45 |
|
71 | 46 | bundle agent nested_function_calls |
72 | 47 | { |
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 | | - ); |
| 48 | +vars: |
| 49 | +"variable_name" string => concat("one", concat("two", "three", "four")); |
| 50 | +"variable_name" string => concat("one", concat("two", "three", "four", "five")); |
| 51 | +"variable_name" string => concat( |
| 52 | +"one", concat("two", "three", "four", "five", "six", "seven") |
| 53 | +); |
| 54 | +"variable_name" string => concat( |
| 55 | +"one", |
| 56 | +concat("two", "three", "four", "five", "six", "seven", "eight", ""), |
| 57 | +); |
| 58 | +"variable_name" string => concat( |
| 59 | +"one", |
| 60 | +concat("two", "three", "four", "five", "six", "seven", "eight", "nine", ""), |
| 61 | +); |
| 62 | +"variable_name" string => concat( |
| 63 | +"one", |
| 64 | +concat("two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", ), |
| 65 | +); |
97 | 66 | } |
0 commit comments