pub struct Options {
pub force: bool,
pub interactive: InteractiveMode,
pub one_fs: bool,
pub preserve_root: bool,
pub recursive: bool,
pub dir: bool,
pub verbose: bool,
pub progress: bool,
/* private fields */
}Expand description
Options for the rm command
All options are public so that the options can be programmatically constructed by other crates, such as Nushell. That means that this struct is part of our public API. It should therefore not be changed without good reason.
The fields are documented with the arguments that determine their value.
Fields§
§force: bool-f, --force
interactive: InteractiveModeIterative mode, determines when the command will prompt.
Set by the following arguments:
-i:InteractiveMode::Always-I:InteractiveMode::Once--interactive: sets one of the above orInteractiveMode::Never-f: implicitly setsInteractiveMode::Never
If no other option sets this mode, InteractiveMode::PromptProtected
is used
one_fs: bool--one-file-system
preserve_root: bool--preserve-root/--no-preserve-root
recursive: bool-r, --recursive
dir: bool-d, --dir
verbose: bool-v, --verbose
progress: bool-g, --progress