pub struct Config {
pub verbose: bool,
pub excludes: Vec<PathBuf>,
pub tags: Vec<String>,
pub dotfiles_path: Option<PathBuf>,
pub hostname: Option<String>,
pub platform: Option<Platform>,
pub command: Command,
}
Expand description
The portion of the configuration read from CLI arguments
Fields§
§verbose: bool
Enables verbose output.
excludes: Vec<PathBuf>
Paths (relative to the dotfiles folder) of items to be excluded. This is in addition to any excludes defined in your dotrc. Globs are accepted - just make sure to enclose them in single quotes to avoid your shell trying to expand them.
Tags to enable. This is in addition to any tags enabled in your dotrc.
dotfiles_path: Option<PathBuf>
The folder in which to search for dotfiles. The default is ~/.dotfiles.
hostname: Option<String>
The hostname to use. The default is the system hostname.
platform: Option<Platform>
The platform to use. The default is the actual platform. Valid values are macos, windows, linux, and wsl.
command: Command
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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