Always set initial value when prompting changes during identity creation

korrat
Oct 24, 2024, 11:48 AM
SJYZ3QFFRRRIZG7NKW7UAQVTIKMGRA7X5J3BLJEOXJYTF73OMW6AC

Dependencies

  • [2] 32G3GOK7 Migrate from `dialoguer` to `pijul-interaction`
  • [3] 4KJ45IJL Implement new identity management
  • [4] 44RUBHRE Only re-prove identity when credentials change
  • [5] 4OJWMSOW Fully replace crate::Identity
  • [6] YJXRCXOS Disallow overwriting existing identities via `pijul id edit`

Change contents

  • edit in pijul-identity/src/create.rs at line 24
    [3.9045][2.1213:1262]()
    let will_replace = to_replace.is_some();
  • replacement in pijul-identity/src/create.rs at line 29
    [2.1394][2.1394:1443](),[3.160][3.9110:9144](),[3.197][3.9110:9144](),[2.1443][3.9110:9144](),[3.29520][3.9110:9144](),[3.9144][3.29546:29612](),[3.29546][3.29546:29612]()
    .with_initial_text(if will_replace {
    self.name.clone()
    } else {
    String::new()
    })
    [2.1394]
    [2.1444]
    .with_initial_text(self.name.clone())