Skip to content

Commit 1f1fcc8

Browse files
committed
Added formatting test for bundle "docstrings"
Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
1 parent 6b51e49 commit 1f1fcc8

2 files changed

Lines changed: 96 additions & 0 deletions

File tree

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
bundle agent a
2+
# @brief Description of a
3+
{
4+
reports:
5+
"Hello, world!";
6+
}
7+
8+
bundle agent b
9+
# @brief Description of b
10+
# @note Something important
11+
{
12+
reports:
13+
"Hello, world!";
14+
}
15+
16+
bundle agent c
17+
# @brief Description of c
18+
# @note Something important
19+
{
20+
reports:
21+
"Hello, world!";
22+
}
23+
24+
bundle agent d
25+
# @brief Description of d
26+
# @note Something important
27+
{
28+
reports:
29+
"Hello, world!";
30+
}
31+
32+
bundle agent e
33+
# keyword
34+
# type
35+
# name
36+
{
37+
reports:
38+
"Hello, world!";
39+
}
40+
41+
bundle agent f(s, d, o, p)
42+
# source - where to copy from
43+
# destination - folder or file path
44+
# owner - root, nick
45+
# perms - 0677
46+
{
47+
reports:
48+
"Hello, world!";
49+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
bundle agent a # @brief Description of a
2+
{
3+
reports:
4+
"Hello, world!";
5+
}
6+
7+
bundle agent b
8+
# @brief Description of b
9+
# @note Something important
10+
{
11+
reports:
12+
"Hello, world!";
13+
}
14+
15+
bundle agent c # @brief Description of c
16+
# @note Something important
17+
{
18+
reports:
19+
"Hello, world!";
20+
}
21+
22+
bundle agent d
23+
# @brief Description of d
24+
# @note Something important
25+
{
26+
reports:
27+
"Hello, world!";
28+
}
29+
30+
bundle # keyword
31+
agent # type
32+
e # name
33+
{
34+
reports:
35+
"Hello, world!";
36+
}
37+
38+
bundle agent f(
39+
s, # source - where to copy from
40+
d, # destination - folder or file path
41+
o, # owner - root, nick
42+
p, # perms - 0677
43+
)
44+
{
45+
reports:
46+
"Hello, world!";
47+
}

0 commit comments

Comments
 (0)