pub struct Args {Show 15 fields
pub help: bool,
pub version: bool,
pub all: bool,
pub color: TriBool,
pub ascii: bool,
pub remote_stats: TriBool,
pub list_cols: bool,
pub cols: Cols,
pub filter: Option<Filter>,
pub sort: Sorting,
pub units: Units,
pub json: bool,
pub csv: bool,
pub csv_separator: char,
pub path: Option<PathBuf>,
}Expand description
List your filesystems.
Documentation at https://dystroy.org/dysk
Fields§
§help: boolprint help information
version: boolprint the version
all: boolshow all mount points
color: TriBoolwhether to have styles and colors
ascii: booluse only ASCII characters for table rendering
remote_stats: TriBoolfetch stats of remote volumes
list_cols: boollist the column names which can be used in -s, -f, or -c
cols: Colscolumns, eg -c +inodes or -c id+dev+default
filter: Option<Filter>filter, eg -f '(size<35G | remote=false) & type=xfs'
sort: Sortingsort, eg inodes, type-desc, or size-asc
units: Unitsunits: SI (SI norm), binary (1024 based), or bytes (raw number)
json: booloutput as JSON
csv: booloutput as CSV
csv_separator: charCSV separator
path: Option<PathBuf>if provided, only the device holding this path will be shown
Implementations§
Trait Implementations§
source§impl CommandFactory for Args
impl CommandFactory for Args
source§impl FromArgMatches for Args
impl FromArgMatches for Args
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(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches to self.source§impl Parser for Args
impl Parser for Args
source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, exit on error.
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
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