Updating reset with the new CLI refactoring

pmeunier
Feb 7, 2024, 6:45 PM
NHVLSXLMRBWEXI33YPSKYHRHS7EYUIITMG35EIK6PVHNXFXYDSUQC

Dependencies

  • [2] ICEK2JVG Add reset_overwrites_changes config option. When set to never --force is required for reset
  • [3] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [4] RUBBHYZ7 Removing unnecessary async/await

Change contents

  • replacement in pijul/src/commands/reset.rs at line 34
    [3.1186][2.134:203]()
    let reset_overwrites_changes = crate::config::Global::load()
    [3.1186]
    [2.203]
    let reset_overwrites_changes = pijul_config::Global::load()
  • replacement in pijul/src/commands/reset.rs at line 39
    [2.353][2.353:507]()
    Some(crate::config::Choice::Never) => false,
    Some(crate::config::Choice::Auto) | Some(crate::config::Choice::Always) | _ => true,
    [2.353]
    [2.507]
    Some(pijul_config::Choice::Never) => false,
    Some(pijul_config::Choice::Auto) | Some(pijul_config::Choice::Always) | _ => true,