Enum xvc_pipeline::StepSubCommand
source · pub enum StepSubCommand {
New {
step_name: String,
command: String,
when: Option<XvcStepInvalidate>,
},
Update {
step_name: String,
command: Option<String>,
when: Option<XvcStepInvalidate>,
},
Dependency {
step_name: String,
generics: Option<Vec<String>>,
urls: Option<Vec<String>>,
files: Option<Vec<String>>,
steps: Option<Vec<String>>,
glob_items: Option<Vec<String>>,
globs: Option<Vec<String>>,
params: Option<Vec<String>>,
regex_items: Option<Vec<String>>,
regexes: Option<Vec<String>>,
line_items: Option<Vec<String>>,
lines: Option<Vec<String>>,
},
Output {
step_name: String,
files: Option<Vec<String>>,
metrics: Option<Vec<String>>,
images: Option<Vec<String>>,
},
Show {
step_name: String,
},
}Expand description
Step management subcommands
Variants§
New
Fields
Add a new step
Update
Fields
Update a step’s command or when options.
Dependency
Fields
generics: Option<Vec<String>>Add a generic command output as a dependency. Can be used multiple times. Please delimit the command with ’ ’ to avoid shell expansion.
steps: Option<Vec<String>>Add a step dependency to a step. Can be used multiple times. Steps are referred with their names.
glob_items: Option<Vec<String>>Add a glob items dependency to the step.
You can depend on multiple files and directories with this dependency.
The difference between this and the glob option is that this option keeps track of all matching files, but glob only keeps track of the matched files’ digest. When you want to use ${XVC_GLOB_ITEMS}, ${XVC_ADDED_GLOB_ITEMS}, or ${XVC_REMOVED_GLOB_ITEMS} environment variables in the step command, use the glob-items dependency. Otherwise, you can use the glob option to save disk space.
globs: Option<Vec<String>>Add a glob dependency to the step. Can be used multiple times.
You can depend on multiple files and directories with this dependency.
The difference between this and the glob-items option is that the glob-items option keeps track of all matching files individually, but this option only keeps track of the matched files’ digest. This dependency uses considerably less disk space.
params: Option<Vec<String>>Add a parameter dependency to the step in the form filename.yaml::model.units . Can be used multiple times.
regex_items: Option<Vec<String>>Add a regex dependency in the form filename.txt:/^regex/ . Can be used multiple times.
The difference between this and the regex option is that the regex-items option keeps track of all matching lines, but regex only keeps track of the matched lines’ digest. When you want to use ${XVC_REGEX_ITEMS}, ${XVC_ADDED_REGEX_ITEMS}, ${XVC_REMOVED_REGEX_ITEMS} environment variables in the step command, use the regex option. Otherwise, you can use the regex-digest option to save disk space.
regexes: Option<Vec<String>>Add a regex dependency in the form filename.txt:/^regex/ . Can be used multiple times.
The difference between this and the regex option is that the regex option keeps track of all matching lines that can be used in the step command. This option only keeps track of the matched lines’ digest.
line_items: Option<Vec<String>>Add a line dependency in the form filename.txt::123-234
The difference between this and the lines option is that the line-items option keeps track of all matching lines that can be used in the step command. This option only keeps track of the matched lines’ digest. When you want to use ${XVC_ALL_LINE_ITEMS}, ${XVC_ADDED_LINE_ITEMS}, ${XVC_CHANGED_LINE_ITEMS} options in the step command, use the line option. Otherwise, you can use the lines option to save disk space.
lines: Option<Vec<String>>Add a line digest dependency in the form filename.txt::123-234
The difference between this and the line-items dependency is that the line option keeps track of all matching lines that can be used in the step command. This option only keeps track of the matched lines’ digest. If you don’t need individual lines to be kept, use this option to save space.
Add a dependency to a step
Output
Fields
Add an output to a step
Show
Print step configuration
Trait Implementations§
source§impl Clone for StepSubCommand
impl Clone for StepSubCommand
source§fn clone(&self) -> StepSubCommand
fn clone(&self) -> StepSubCommand
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl CommandFactory for StepSubCommand
impl CommandFactory for StepSubCommand
source§impl Debug for StepSubCommand
impl Debug for StepSubCommand
source§impl FromArgMatches for StepSubCommand
impl FromArgMatches for StepSubCommand
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
ArgMatches to self.source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
ArgMatches to self.source§impl Parser for StepSubCommand
impl Parser for StepSubCommand
§fn try_parse() -> Result<Self, Error<RichFormatter>>
fn try_parse() -> Result<Self, Error<RichFormatter>>
std::env::args_os(), return Err on error.§fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
§fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
source§impl Subcommand for StepSubCommand
impl Subcommand for StepSubCommand
source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
source§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand