pub enum FileCommands {
Upload {
name: Option<String>,
src: String,
dest: Option<String>,
},
Ls {
name: Option<String>,
args: Vec<String>,
},
Cp {
name: Option<String>,
args: Vec<String>,
},
Rm {
name: Option<String>,
args: Vec<String>,
},
}Variants§
Upload
Upload a local file to the runtime
Ls
List files on the runtime (passes args through to remote ls)
Examples: colab-cli file ls colab-cli file ls -lah /content colab-cli file ls –name “Colab CPU” -a /tmp
Fields
Cp
Copy files on the runtime (passes args through to remote cp)
Examples: colab-cli file cp /content/foo /content/bar colab-cli file cp -r /content/dir /content/dir2
Rm
Remove files on the runtime (passes args through to remote rm)
Examples: colab-cli file rm /content/foo.txt colab-cli file rm -rf /content/junk
Trait Implementations§
Source§impl FromArgMatches for FileCommands
impl FromArgMatches for FileCommands
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>
Assign values from
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>
Assign values from
ArgMatches to self.Source§impl Subcommand for FileCommands
impl Subcommand for FileCommands
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
Append to
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
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for FileCommands
impl RefUnwindSafe for FileCommands
impl Send for FileCommands
impl Sync for FileCommands
impl Unpin for FileCommands
impl UnsafeUnpin for FileCommands
impl UnwindSafe for FileCommands
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
Mutably borrows from an owned value. Read more