|
1 | 1 | [bundle]
|
| 2 | +# Add separators between the contents of each source file inside the bundle. |
2 | 3 | separators = true
|
| 4 | + |
| 5 | +# Produce a deterministic bundle. This switch makes cbundl a pure function. |
| 6 | +# This means that for the same source files, the same bundle is always produced. |
| 7 | +# One sideffect is that dates will be displayed as the UNIX epoch and quotes |
| 8 | +# will always be the same. This switch is useful if you intend to check into |
| 9 | +# source control the bundle, where you wouldn't want to pollute diffs with |
| 10 | +# changed to the generated date, or the quotes inside the bundle. |
3 | 11 | deterministic = false
|
| 12 | + |
| 13 | +# Write the final bundle to this path. |
4 | 14 | output = "test/frob/final.c"
|
5 | 15 |
|
| 16 | +## |
| 17 | +## This section configures a custom header to be added to the very top of the |
| 18 | +## bundle. Useful for adding license text or copyright notices. |
| 19 | +## |
6 | 20 | [header]
|
| 21 | +# Whether to add the custom header. |
7 | 22 | enable = true
|
| 23 | + |
| 24 | +# The text to be added. Before you ask: yes, you can inject code from here but |
| 25 | +# you shouldn't have to. If you find yourself doing that, you are doing something |
| 26 | +# wrong. |
8 | 27 | text = """
|
9 | 28 | // My amazing header text!
|
10 | 29 | """
|
| 30 | + |
| 31 | +# Specify a file which contains the text for the header. The contents of the file |
| 32 | +# will be pasted in verbatim. This means that the file must contain the text in |
| 33 | +# C comments. |
11 | 34 | #source = "header.txt"
|
12 | 35 |
|
| 36 | +# NOTE: `text` and `source` cannot be specified both at the same time. |
| 37 | + |
| 38 | +## |
| 39 | +## This section configures the banner at the top of the bundle. |
| 40 | +## |
13 | 41 | [banner]
|
| 42 | +# Whether to add the banner. |
14 | 43 | enable = true
|
15 | 44 |
|
| 45 | +## |
| 46 | +## This section configures the quotes displayed inside the banner. |
| 47 | +## |
16 | 48 | [banner.quote]
|
| 49 | +# Whether to add quotes inside the banner. |
17 | 50 | enable = true
|
| 51 | + |
| 52 | +# Pick quotes from this location. Specifying "all" here will allow cbundl to |
| 53 | +# choose at random one quote without restrictions. "builtin" will only pick |
| 54 | +# quotes that are built-in to cbundl. "custom" will only pick quotes that are |
| 55 | +# configured here. |
| 56 | +# |
| 57 | +# Valid values: "all", "builtin", "custom" |
18 | 58 | pick = "custom"
|
19 | 59 |
|
| 60 | +## |
| 61 | +## This section configures how cbundl will format the bundle. |
| 62 | +## |
20 | 63 | [formatter]
|
| 64 | +# Whether to format the bundle. |
21 | 65 | enable = true
|
| 66 | + |
| 67 | +# Path to the formatter binary. Specifying just the executable will make cbundl |
| 68 | +# search in PATH for it. |
22 | 69 | path = "clang-format"
|
| 70 | + |
| 71 | +# Extra arguments to pass to the formatter. |
23 | 72 | args = ["--verbose", "--sort-includes"]
|
24 | 73 |
|
| 74 | + |
| 75 | +# A custom quote. |
25 | 76 | [[quote]]
|
| 77 | +# Quote text. Will appear as is. |
26 | 78 | text = """
|
27 | 79 | Use a gun. And if that don't work...
|
28 | 80 | use more gun.
|
29 | 81 | """
|
| 82 | +# Quote author. Make sure to give proper credit. |
30 | 83 | author = "Dr. Dell Conagher"
|
31 | 84 |
|
32 | 85 | [[quote]]
|
|
0 commit comments