Struct broot::display::Args

source ·
pub struct Args {
Show 39 fields pub dates: bool, pub no_dates: bool, pub only_folders: bool, pub no_only_folders: bool, pub show_root_fs: bool, pub show_git_info: bool, pub no_show_git_info: bool, pub git_status: bool, pub hidden: bool, pub no_hidden: bool, pub git_ignored: bool, pub no_git_ignored: bool, pub permissions: bool, pub no_permissions: bool, pub sizes: bool, pub no_sizes: bool, pub sort_by_count: bool, pub sort_by_date: bool, pub sort_by_size: bool, pub sort_by_type: bool, pub sort_by_type_dirs_first: bool, pub sort_by_type_dirs_last: bool, pub whale_spotting: bool, pub no_sort: bool, pub trim_root: bool, pub no_trim_root: bool, pub outcmd: Option<PathBuf>, pub cmd: Option<String>, pub color: TriBool, pub conf: Option<String>, pub height: Option<u16>, pub install: bool, pub set_install_state: Option<CliShellInstallState>, pub print_shell_function: Option<String>, pub listen: Option<String>, pub get_root: bool, pub write_default_conf: Option<PathBuf>, pub send: Option<String>, pub root: Option<PathBuf>,
}
Expand description

A tree explorer and a customizable launcher

Complete documentation lives at https://dystroy.org/broot“

Fields§

§dates: bool

Show the last modified date of files and directories“

§no_dates: bool

Don’t show the last modified date“

§only_folders: bool

Only show folders

§no_only_folders: bool

Show folders and files alike

§show_root_fs: bool

Show filesystem info on top

§show_git_info: bool

Show git statuses on files and stats on repo

§no_show_git_info: bool

Don’t show git statuses on files and stats on repo

§git_status: bool

Only show files having an interesting git status, including hidden ones

§hidden: bool

Show hidden files

§no_hidden: bool

Don’t show hidden files

§git_ignored: bool

Show git ignored files

§no_git_ignored: bool

Don’t show git ignored files

§permissions: bool

Show permissions

§no_permissions: bool

Don’t show permissions

§sizes: bool

Show the size of files and directories

§no_sizes: bool

Don’t show sizes

§sort_by_count: bool

Sort by count (only show one level of the tree)

§sort_by_date: bool

Sort by date (only show one level of the tree)

§sort_by_size: bool

Sort by size (only show one level of the tree)

§sort_by_type: bool

Same as sort-by-type-dirs-first

§sort_by_type_dirs_first: bool

Sort by type, directories first (only show one level of the tree)

§sort_by_type_dirs_last: bool

Sort by type, directories last (only show one level of the tree)

§whale_spotting: bool

Sort by size, show ignored and hidden files

§no_sort: bool

Don’t sort

§trim_root: bool

Trim the root too and don’t show a scrollbar

§no_trim_root: bool

Don’t trim the root level, show a scrollbar

§outcmd: Option<PathBuf>

Where to write the produced cmd (if any)

§cmd: Option<String>

Semicolon separated commands to execute

§color: TriBool

Whether to have styles and colors (auto is default and usually OK)

§conf: Option<String>

Semicolon separated paths to specific config files“),

§height: Option<u16>

Height (if you don’t want to fill the screen or for file export)

§install: bool

Install or reinstall the br shell function

§set_install_state: Option<CliShellInstallState>

Where to write the produced cmd (if any)

§print_shell_function: Option<String>

Print to stdout the br function for a given shell

§listen: Option<String>

A socket to listen to for commands

§get_root: bool

Ask for the current root of the remote broot

§write_default_conf: Option<PathBuf>

Write default conf files in given directory

§send: Option<String>

A socket that broot sends commands to before quitting

§root: Option<PathBuf>

Root Directory

Trait Implementations§

source§

impl Args for Args

source§

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

Append to Command so it can instantiate Self. Read more
source§

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

Append to Command so it can update self. Read more
source§

impl CommandFactory for Args

source§

fn into_app<'b>() -> Command<'b>

Deprecated, replaced with CommandFactory::command
source§

fn into_app_for_update<'b>() -> Command<'b>

Deprecated, replaced with CommandFactory::command_for_update
source§

fn command<'help>() -> App<'help>

Build a Command that can instantiate Self. Read more
source§

fn command_for_update<'help>() -> App<'help>

Build a Command that can update self. Read more
source§

impl Debug for Args

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for Args

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(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>

Assign values from ArgMatches to self.
source§

impl Parser for Args

source§

fn parse() -> Self

Parse from std::env::args_os(), exit on error
source§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
source§

fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,

Parse from iterator, exit on error
source§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
source§

fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,

Update from iterator, exit on error
source§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

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> Any for Twhere
T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.