Enum emu_cli::command::CommandType
source · pub enum CommandType {
Show 20 variants
Create {
append: bool,
name: String,
size: usize,
},
Delete {
name: String,
disk: Option<String>,
},
Rename {
old: String,
new: String,
},
ListDisks {
name: String,
},
NC {
name: String,
port: u16,
},
SSH {
name: String,
args: Option<Vec<String>>,
},
Supervise {
cdrom: Option<PathBuf>,
name: String,
},
Unsupervise {
name: String,
},
Run {
headless: bool,
detach: bool,
cdrom: Option<PathBuf>,
extra_disk: Option<PathBuf>,
name: String,
},
Shutdown {
nowait: bool,
name: String,
},
QMP {
name: String,
command: String,
arguments: Option<String>,
},
List {
running: bool,
},
Supervised,
Clone {
config: bool,
from: String,
to: String,
},
Import {
format: String,
name: String,
from_file: PathBuf,
},
Config(ConfigSubcommand),
IsActive {
name: String,
},
Save {
name: String,
},
Load {
name: String,
},
ClearState {
name: String,
},
}Variants§
Create
Fields
Create vm with a sized image, or append storage to an existing VM
Delete
Delete existing vm
Rename
Rename VM to new name
ListDisks
List all disks a VM has available
NC
Open standard input to a port on the VM
SSH
Fields
Uses ssh_port configuration variable to SSH into the host
Supervise
Fields
Configure supervision of an already existing VM
Unsupervise
Remove supervision of an already existing vm
Run
Fields
Just run a pre-created VM; no systemd involved
Shutdown
Gracefully shutdown a pre-created VM
QMP
Fields
Issue QMP commands to the guest
List
Yield a list of VMs, one on each line
Supervised
Yield a list of supervised VMs, one on each line
Clone
Fields
Clone one VM to another
Import
Fields
Import a VM from a VM image file
Config(ConfigSubcommand)
Show and manipulate VM configuration
IsActive
Is this VM currently active?
Save
Quickly save a snapshot of the named VM
Load
Load the quick save of the named VM
ClearState
Delete the quick save of the named VM
Trait Implementations§
source§impl Clone for CommandType
impl Clone for CommandType
source§fn clone(&self) -> CommandType
fn clone(&self) -> CommandType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CommandType
impl Debug for CommandType
source§impl FromArgMatches for CommandType
impl FromArgMatches for CommandType
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 CommandType
impl Subcommand for CommandType
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