cli: Clean up handling of RID arguments
15 files changed
+74
-89
07c62449
→
bb97414a
modified crates/radicle-cli/src/commands/fork.rs
@@ -1,10 +1,11 @@
|
|
|
|
| - | |
| - | |
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -13,15 +14,7 @@ pub fn run(args: Args, ctx: impl term::Context) -> anyhow::Result<()> {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/fork/args.rs
@@ -19,7 +19,7 @@ pub struct Args {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/id.rs
@@ -17,7 +17,7 @@ use radicle_term::Element;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -27,12 +27,7 @@ use args::Command;
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/inbox.rs
@@ -5,8 +5,6 @@ pub use args::Args;
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
|
@@ -23,6 +21,7 @@ use radicle::{Storage, cob, git};
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -391,11 +390,8 @@ fn clear(notifs: &mut notifications::StoreWriter, mode: ClearMode) -> anyhow::Re
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/issue.rs
@@ -26,7 +26,7 @@ use crate::git::Rev;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -34,11 +34,7 @@ const ABOUT: &str = "Manage issues";
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/node.rs
@@ -72,7 +72,11 @@ pub fn run(args: Args, ctx: impl term::Context) -> anyhow::Result<()> {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/node/args.rs
@@ -147,8 +147,8 @@ pub(super) enum Command {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/patch.rs
@@ -30,6 +30,7 @@ use radicle::{Node, prelude::*};
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -37,14 +38,7 @@ pub use args::Args;
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/publish.rs
@@ -1,6 +1,6 @@
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -8,17 +8,13 @@ use radicle::node::Handle as _;
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/publish/args.rs
@@ -21,7 +21,7 @@ pub struct Args {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/remote.rs
@@ -6,19 +6,19 @@ pub mod rm;
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
| - | |
|
|
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/sync.rs
@@ -5,7 +5,7 @@ use std::collections::BTreeMap;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -22,6 +22,7 @@ use radicle_term::Element;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -40,31 +41,17 @@ pub fn run(args: Args, ctx: impl term::Context) -> anyhow::Result<()> {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/sync/args.rs
@@ -107,7 +107,8 @@ pub(super) struct SyncArgs {
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -178,7 +179,8 @@ pub(super) enum Command {
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -216,7 +218,7 @@ pub(super) enum SyncMode {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -244,7 +246,7 @@ impl From<SyncArgs> for SyncMode {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/watch.rs
@@ -2,7 +2,7 @@ mod args;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -10,6 +10,7 @@ use radicle::prelude::NodeId;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -21,14 +22,7 @@ pub fn run(args: Args, ctx: impl term::Context) -> anyhow::Result<()> {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/terminal/args.rs
@@ -105,6 +105,34 @@ impl TypedValueParser for ScopeParser {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|