diff --git a/radicle-cli/src/commands.rs b/radicle-cli/src/commands.rs index e7036949..2fc5d6ea 100644 --- a/radicle-cli/src/commands.rs +++ b/radicle-cli/src/commands.rs @@ -6,6 +6,8 @@ pub mod rad_auth; pub mod rad_checkout; #[path = "commands/clone.rs"] pub mod rad_clone; +#[path = "commands/cob.rs"] +pub mod rad_cob; #[path = "commands/comment.rs"] pub mod rad_comment; #[path = "commands/delegate.rs"] diff --git a/radicle-cli/src/commands/cob.rs b/radicle-cli/src/commands/cob.rs new file mode 100644 index 00000000..658ce85b --- /dev/null +++ b/radicle-cli/src/commands/cob.rs @@ -0,0 +1,140 @@ +use std::ffi::OsString; +use std::str::FromStr; + +use anyhow::anyhow; +use chrono::prelude::*; +use radicle::cob; +use radicle::prelude::Id; +use radicle::storage::ReadStorage; + +use crate::git::Rev; +use crate::terminal as term; +use crate::terminal::args::{Args, Error, Help}; + +pub const HELP: Help = Help { + name: "cob", + description: "Manage collaborative objects", + version: env!("CARGO_PKG_VERSION"), + usage: r#" +Usage + + rad cob [