Skip to main content

Commands

Enum Commands 

Source
pub enum Commands {
    Compress {
Show 16 fields level: i32, output: Option<PathBuf>, progress: bool, exclude: Vec<String>, keep_xattrs: bool, keep_permissions: bool, keep_ownership: bool, follow_symlinks: bool, allow_symlink_escape: bool, redact: bool, strip_timestamps: bool, no_default_excludes: bool, format: Option<Format>, overwrite: bool, input: PathBuf, password: Option<String>,
}, Extract { archive: PathBuf, destination: Option<PathBuf>, directory: Option<PathBuf>, progress: bool, strip_components: usize, keep_xattrs: bool, strip_timestamps: bool, keep_permissions: bool, keep_ownership: bool, overwrite: bool, password: Option<String>, }, List { archive: PathBuf, }, Test { archive: PathBuf, }, }

Variants§

§

Compress

compress files/directories (supports .zst, .tgz, .txz, .zip, .7z)

Fields

§level: i32

compression level (1-22)

§output: Option<PathBuf>

output file path

§progress: bool

show progress bar

§exclude: Vec<String>

exclude files matching pattern (repeatable)

§keep_xattrs: bool

preserve extended attributes (xattrs) in tar-based archives

§keep_permissions: bool

preserve original file permissions in archive entries

§keep_ownership: bool

preserve ownership (uid/gid) in tar-based archives

§follow_symlinks: bool

follow symlinks and archive target contents (may include files outside input)

§allow_symlink_escape: bool

allow symlink targets outside the input root (requires –follow-symlinks)

§redact: bool

strip timestamps and xattrs, normalize ownership/permissions, and exclude common secrets (overrides keep flags)

§strip_timestamps: bool

strip filesystem timestamps in archive entries

§no_default_excludes: bool

disable built-in garbage file filtering

§format: Option<Format>

force specific format (zst, tgz, txz, zip, 7z)

§overwrite: bool

overwrite existing output file

§input: PathBuf

input file or directory

§password: Option<String>

password for encryption (supported by zst and 7z)

§

Extract

extract archives (auto-detects format: .zst, .tgz, .txz, .zip, .7z)

Fields

§archive: PathBuf

archive file to extract

§destination: Option<PathBuf>

destination directory

§directory: Option<PathBuf>

extract to specific directory

§progress: bool

show progress bar

§strip_components: usize

strip leading path components

§keep_xattrs: bool

preserve extended attributes (xattrs) when extracting tar-based archives

§strip_timestamps: bool

strip filesystem timestamps when extracting tar-based archives

§keep_permissions: bool

preserve file permissions when extracting

§keep_ownership: bool

preserve ownership (uid/gid) when extracting tar-based archives

§overwrite: bool

overwrite existing files

§password: Option<String>

password for decryption (for zst and 7z)

§

List

list archive contents

Fields

§archive: PathBuf

archive file to list

§

Test

test archive integrity

Fields

§archive: PathBuf

archive file to test

Trait Implementations§

Source§

impl FromArgMatches for Commands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

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>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Commands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

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 more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V