pub enum SftpAction {
Upload {
all: bool,
hosts: Option<String>,
target: Vec<String>,
recursive: bool,
auth: SshAuthArgs,
timeout: Option<u64>,
json: bool,
},
Download {
all: bool,
hosts: Option<String>,
target: Vec<String>,
recursive: bool,
auth: SshAuthArgs,
timeout: Option<u64>,
json: bool,
},
Ls {
vps_name: String,
remote: String,
auth: SshAuthArgs,
timeout: Option<u64>,
json: bool,
},
Mkdir {
vps_name: String,
remote: String,
auth: SshAuthArgs,
timeout: Option<u64>,
json: bool,
},
Rmdir {
vps_name: String,
remote: String,
auth: SshAuthArgs,
timeout: Option<u64>,
json: bool,
},
Rm {
vps_name: String,
remote: String,
auth: SshAuthArgs,
timeout: Option<u64>,
json: bool,
},
Stat {
vps_name: String,
remote: String,
auth: SshAuthArgs,
timeout: Option<u64>,
json: bool,
},
Rename {
vps_name: String,
from: String,
to: String,
auth: SshAuthArgs,
timeout: Option<u64>,
json: bool,
},
}Expand description
Actions of the sftp subcommand (SFTP v3 subsystem).
Variants§
Upload
Uploads a local file or tree to the remote host via SFTP.
Fields
§
target: Vec<String>Paths: VPS LOCAL REMOTE, multi-file VPS LOCAL... REMOTE_DIR, or fleet forms with --all/--hosts.
§
auth: SshAuthArgsSSH authentication overrides.
Download
Downloads a remote file or tree to the local host via SFTP.
Fields
§
auth: SshAuthArgsSSH authentication overrides.
Ls
Lists a remote directory.
Fields
§
auth: SshAuthArgsSSH authentication overrides.
Mkdir
Creates a remote directory.
Fields
§
auth: SshAuthArgsSSH authentication overrides.
Rmdir
Removes an empty remote directory.
Fields
§
auth: SshAuthArgsSSH authentication overrides.
Rm
Removes a remote file.
Fields
§
auth: SshAuthArgsSSH authentication overrides.
Stat
Shows metadata for a remote path.
Fields
§
auth: SshAuthArgsSSH authentication overrides.
Rename
Renames a remote path.
Trait Implementations§
Source§impl Debug for SftpAction
impl Debug for SftpAction
Source§impl FromArgMatches for SftpAction
impl FromArgMatches for SftpAction
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 SftpAction
impl Subcommand for SftpAction
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 SftpAction
impl RefUnwindSafe for SftpAction
impl Send for SftpAction
impl Sync for SftpAction
impl Unpin for SftpAction
impl UnsafeUnpin for SftpAction
impl UnwindSafe for SftpAction
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