File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -23,22 +23,37 @@ pub struct Opts {
23
23
deny_warnings : bool ,
24
24
25
25
/// Vector config files in TOML format to validate.
26
- #[ structopt( name = "config-toml" , long, use_delimiter( true ) ) ]
26
+ #[ structopt(
27
+ name = "config-toml" ,
28
+ long,
29
+ env = "VECTOR_CONFIG_TOML" ,
30
+ use_delimiter( true )
31
+ ) ]
27
32
paths_toml : Vec < PathBuf > ,
28
33
29
34
/// Vector config files in JSON format to validate.
30
- #[ structopt( name = "config-json" , long, use_delimiter( true ) ) ]
35
+ #[ structopt(
36
+ name = "config-json" ,
37
+ long,
38
+ env = "VECTOR_CONFIG_JSON" ,
39
+ use_delimiter( true )
40
+ ) ]
31
41
paths_json : Vec < PathBuf > ,
32
42
33
43
/// Vector config files in YAML format to validate.
34
- #[ structopt( name = "config-yaml" , long, use_delimiter( true ) ) ]
44
+ #[ structopt(
45
+ name = "config-yaml" ,
46
+ long,
47
+ env = "VECTOR_CONFIG_YAML" ,
48
+ use_delimiter( true )
49
+ ) ]
35
50
paths_yaml : Vec < PathBuf > ,
36
51
37
52
/// Any number of Vector config files to validate.
38
53
/// Format is detected from the file name.
39
54
/// If none are specified the default config path `/etc/vector/vector.toml`
40
55
/// will be targeted.
41
- #[ structopt( use_delimiter( true ) ) ]
56
+ #[ structopt( env = "VECTOR_CONFIG" , use_delimiter( true ) ) ]
42
57
paths : Vec < PathBuf > ,
43
58
44
59
/// Read configuration from files in one or more directories.
You can’t perform that action at this time.
0 commit comments