git.delta.rocks / jrsonnet / refs/commits / 94511c441a10

difftreelog

docs Fix docs of manifest.rs

progrm_jarvis2020-08-03parent: #2c0daa5.patch.diff
in: master

1 file changed

modifiedcrates/jrsonnet-cli/src/manifest.rsdiffbeforeafterboth
27// #[clap(group = clap::ArgGroup::new("output_format"), help_heading = "MANIFESTIFICATION OUTPUT")]27// #[clap(group = clap::ArgGroup::new("output_format"), help_heading = "MANIFESTIFICATION OUTPUT")]
28pub struct ManifestOpts {28pub struct ManifestOpts {
29 /// Output format, wraps resulting value to corresponding std.manifest call.29 /// Output format, wraps resulting value to corresponding std.manifest call.
30 /// If string - then jsonnet file is expected to return plain string value, otherwise30 /// If set to `string` then plain string value is expected to be returned,
31 /// output will be serialized to specified format31 /// otherwise output will be serialized to the specified format.
32 #[clap(long, short = 'f', default_value = "json", possible_values = &["string", "json", "yaml"]/*, group = "output_format"*/)]32 #[clap(long, short = 'f', default_value = "json", possible_values = &["string", "json", "yaml"]/*, group = "output_format"*/)]
33 format: ManifestFormatName,33 format: ManifestFormatName,
34 /// Expect string as output, and write them directly.34 /// Expect plain string as output.
35 /// Shortcut for --format=string, and can't be set with format together35 /// Shortcut for `--format=string` thus this option is mutually exclusive with `format` option.
36 #[clap(long, short = 'S'/*, group = "output_format"*/)]36 #[clap(long, short = 'S'/*, group = "output_format"*/)]
37 string: bool,37 string: bool,
38 /// Write output as YAML stream, can be used with --format json/yaml38 /// Write output as YAML stream, can be used with --format json/yaml
39 #[clap(long, short = 'y')]39 #[clap(long, short = 'y')]
40 yaml_stream: bool,40 yaml_stream: bool,
41 /// Numbed of spaces to pad output manifest with.41 /// Number of spaces to pad output manifest with.
42 /// 0 for hard tabs, -1 for single line output42 /// `0` for hard tabs, `-1` for single line output/
43 #[clap(long, default_value = "3")]43 #[clap(long, default_value = "3")]
44 line_padding: usize,44 line_padding: usize,
45}45}