bosh example¶
Generate a sample invocation JSON for a descriptor.
By default only the required inputs are filled in. With --complete,
optional inputs are filled in too — useful for visualising the maximal
command-line.
Flag inputs are treated as effectively optional regardless of their
declared optional field — at the runtime layer, a flag's absence is
indistinguishable from value: false, so a minimum example omits all
flags. --complete includes them.
Example¶
$ bosh example fsl_bet.json --complete
{
"infile": "/path/to/infile",
"maskfile": "example_maskfile",
"fractional_intensity": 0.0,
"vg_fractional_intensity": -1.0,
"center_of_gravity": [0.0, 0.0, 0.0],
"overlay_flag": true,
...
}
How values are picked¶
For each input, the example generator chooses a value in this order:
- The input's declared
default-value, if present. - The first entry of
value-choices, if present. - The minimum of a numeric range (
minimum) if set. - A typed placeholder:
0/0.0for numbers,truefor flags,/path/to/<id>for files,example_<id>for strings.
List inputs return min-list-entries copies of the chosen value (at
least one).
Sub-command unions pick the first candidate and tag it with @type
(matches Styx's tagged-union convention; the value is the chosen
candidate's id).