diff --git a/radicle-cli/src/commands.rs b/radicle-cli/src/commands.rs index 6e5d16ba..abd1bc6e 100644 --- a/radicle-cli/src/commands.rs +++ b/radicle-cli/src/commands.rs @@ -4,6 +4,8 @@ pub mod rad_auth; pub mod rad_checkout; #[path = "commands/clone.rs"] pub mod rad_clone; +#[path = "commands/edit.rs"] +pub mod rad_edit; #[path = "commands/help.rs"] pub mod rad_help; #[path = "commands/init.rs"] diff --git a/radicle-cli/src/commands/edit.rs b/radicle-cli/src/commands/edit.rs new file mode 100644 index 00000000..88ebae29 --- /dev/null +++ b/radicle-cli/src/commands/edit.rs @@ -0,0 +1,99 @@ +use std::ffi::OsString; +use std::str::FromStr; + +use anyhow::{anyhow, Context as _}; + +use radicle::identity::Id; +use radicle::storage::{ReadStorage, WriteStorage}; + +use crate::terminal as term; +use crate::terminal::args::{Args, Error, Help}; + +pub const HELP: Help = Help { + name: "edit", + description: "Edit a radicle identity doc", + version: env!("CARGO_PKG_VERSION"), + usage: r#" +Usage + + rad edit [] [