pub struct UpdateOpts {
pub tool_config_path: PathBuf,
pub config_path: Option<PathBuf>,
pub manifest_path: PathBuf,
pub dry_run: bool,
pub skip_hooks: bool,
pub force: bool,
}Expand description
Inputs to update.
The working tree must be clean before calling update. If it is not,
update returns UpdateError::DirtyWorkingTree immediately.
There is no auto-stash option; commit, stash, or discard changes first.
Auto-stash will be re-added once gix gains stash support.
Fields§
§tool_config_path: PathBufPath to the tool config (${XDG_CONFIG}/krypt/config.toml).
config_path: Option<PathBuf>Override the path to .krypt.toml. Defaults to <repo_path>/.krypt.toml.
manifest_path: PathBufPath for the deployment manifest.
dry_run: boolPass dry_run = true to the link step.
skip_hooks: boolDocumented no-op for forward compatibility (hook runner not yet implemented).
force: boolPass force = true to the link step.
Auto Trait Implementations§
impl Freeze for UpdateOpts
impl RefUnwindSafe for UpdateOpts
impl Send for UpdateOpts
impl Sync for UpdateOpts
impl Unpin for UpdateOpts
impl UnsafeUnpin for UpdateOpts
impl UnwindSafe for UpdateOpts
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