pub enum Commands {
List {
object: Objects,
pretty: Formats,
},
Config {
output: Option<String>,
tag: Option<String>,
tag_filter: Option<String>,
ignore_unauthorized: bool,
no_slug: bool,
offline: bool,
progress: bool,
threads: u8,
},
Slug {
text: Option<String>,
},
Get {
url: String,
script: Option<(String, String)>,
output: Option<String>,
timeout_connect: u16,
max_time: u16,
headers: Vec<(String, String)>,
},
}Variants§
List
List objects found in the compose file: services, volumes, âŚ
Config
Parse, resolve and render compose file in canonical format
Fields
tag: Option<String>output image attributes in services with a tag passed instead of the one set in the file if they exist locally or in the remote docker registry
tag_filter: Option<String>use with âtag to filter which images should be checked whether the tag exists or not locally or remotely. Currently only regex=EXPR or regex!=EXPR (invert match) are supported
ignore unauthorized errors from docker when fetching remote tags info
Slug
Outputs a slug version of the text passed, or the slug version of the current branch.
Itâs the same slug used with the âtag value in other commands. The output is a lowercase version with all no-alphanumeric characters translated into the â-â symbol, except for the char â.â, to make it compatible with a valid docker tag name.
Get
Download a file from an HTTP URL. If the resource doesnât exist, fallback to another URL generated editing the URL given with a script provided in the form of âtext-to-replace:replacerâ.
Fields
script: Option<(String, String)>if request to URL responds back with HTTP 404, create a second URL
replacing any occurrence of the left part of the script with the right
part. Each part of the script has to be separated with the symbol :.
E.g. pose get https://server.com/repo/feature-a/compose.yml feature-a:master
will try to first download the resource from https://server.com/repo/feature-a/compose.yml,
if not found, will try at https://server.com/repo/master/compose.yml
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
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 Subcommand for Commands
impl Subcommand for Commands
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand