pub enum MicrosandboxSubcommand {
Show 23 variants
Init {
file: Option<PathBuf>,
},
Add {Show 20 fields
sandbox: bool,
build: bool,
group: bool,
names: Vec<String>,
image: String,
memory: Option<u32>,
cpus: Option<u32>,
volumes: Vec<String>,
ports: Vec<String>,
envs: Vec<String>,
env_file: Option<Utf8UnixPathBuf>,
depends_on: Vec<String>,
workdir: Option<Utf8UnixPathBuf>,
shell: Option<String>,
scripts: Vec<(String, String)>,
start: Option<String>,
imports: Vec<(String, String)>,
exports: Vec<(String, String)>,
scope: Option<String>,
file: Option<PathBuf>,
},
Remove {
sandbox: bool,
build: bool,
group: bool,
names: Vec<String>,
file: Option<PathBuf>,
},
List {
sandbox: bool,
build: bool,
group: bool,
file: Option<PathBuf>,
},
Log {
sandbox: bool,
build: bool,
group: bool,
name: String,
file: Option<PathBuf>,
follow: bool,
tail: Option<usize>,
},
Tree {
sandbox: bool,
build: bool,
group: bool,
names: Vec<String>,
level: Option<usize>,
},
Run {
sandbox: bool,
build: bool,
name: String,
file: Option<PathBuf>,
detach: bool,
exec: Option<String>,
args: Vec<String>,
},
Shell {
sandbox: bool,
build: bool,
name: String,
file: Option<PathBuf>,
detach: bool,
args: Vec<String>,
},
Exe {
image: bool,
name: String,
cpus: Option<u8>,
memory: Option<u32>,
volumes: Vec<String>,
ports: Vec<String>,
envs: Vec<String>,
workdir: Option<Utf8UnixPathBuf>,
scope: Option<String>,
exec: Option<String>,
args: Vec<String>,
},
Install {
image: bool,
name: String,
alias: Option<String>,
cpus: Option<u8>,
memory: Option<u32>,
volumes: Vec<String>,
ports: Vec<String>,
envs: Vec<String>,
workdir: Option<Utf8UnixPathBuf>,
scope: Option<String>,
exec: Option<String>,
args: Vec<String>,
},
Uninstall {
script: Option<String>,
},
Apply {
file: Option<PathBuf>,
detach: bool,
},
Up {
sandbox: bool,
build: bool,
group: bool,
names: Vec<String>,
file: Option<PathBuf>,
detach: bool,
},
Down {
sandbox: bool,
build: bool,
group: bool,
names: Vec<String>,
file: Option<PathBuf>,
},
Status {
sandbox: bool,
build: bool,
group: bool,
names: Vec<String>,
file: Option<PathBuf>,
},
Clean {
sandbox: bool,
name: Option<String>,
user: bool,
all: bool,
file: Option<PathBuf>,
force: bool,
},
Build {
build: bool,
sandbox: bool,
group: bool,
names: Vec<String>,
snapshot: bool,
},
Pull {
image: bool,
image_group: bool,
name: Reference,
layer_path: Option<PathBuf>,
},
Login,
Push {
image: bool,
image_group: bool,
name: String,
},
Self_ {
action: SelfAction,
},
Server {
subcommand: ServerSubcommand,
},
Version,
}
Expand description
Available subcommands for managing services
Variants§
Init
Initialize a new microsandbox project
Add
Add a new sandbox to the project
Fields
env_file: Option<Utf8UnixPathBuf>
Environment file
workdir: Option<Utf8UnixPathBuf>
Working directory
Remove
Remove a sandbox from the project
Fields
List
List sandboxes defined in the project
Fields
Log
Show logs of a build, sandbox, or group
Fields
Tree
Show tree of layers that make up a sandbox
Fields
Run
Run a sandbox defined in the project
Fields
Shell
Open a shell in a sandbox
Fields
Exe
Run a temporary sandbox
Fields
workdir: Option<Utf8UnixPathBuf>
Working directory
Install
Install a script from an image
Fields
workdir: Option<Utf8UnixPathBuf>
Working directory
Uninstall
Uninstall a script
Apply
Start or stop project sandboxes based on configuration
Fields
Up
Run a project’s sandboxes
Fields
Down
Stop a project’s sandboxes
Fields
Status
Show statuses of a project’s running sandboxes
Fields
Clean
Clean cached sandbox layers, metadata, etc.
Fields
Build
Build images
Fields
Pull
Pull image from a registry
Fields
Login
Login to a registry
Push
Push image to a registry
Fields
Self_
Manage microsandbox itself
Fields
action: SelfAction
Action to perform
Server
Start a sandbox server for orchestrating and working with sandboxes
Fields
subcommand: ServerSubcommand
The subcommand to run
Version
Print version of microsandbox
Trait Implementations§
Source§impl Debug for MicrosandboxSubcommand
impl Debug for MicrosandboxSubcommand
Source§impl FromArgMatches for MicrosandboxSubcommand
impl FromArgMatches for MicrosandboxSubcommand
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 MicrosandboxSubcommand
impl Parser for MicrosandboxSubcommand
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Source§impl Subcommand for MicrosandboxSubcommand
impl Subcommand for MicrosandboxSubcommand
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 subcommandAuto Trait Implementations§
impl Freeze for MicrosandboxSubcommand
impl RefUnwindSafe for MicrosandboxSubcommand
impl Send for MicrosandboxSubcommand
impl Sync for MicrosandboxSubcommand
impl Unpin for MicrosandboxSubcommand
impl UnwindSafe for MicrosandboxSubcommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more