Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
REVIEW: Rename empty subcommand to "empty"
Lorenz Leutgeb committed 7 months ago
commit 7998ca703ce9c289b6cbebc39a4b1e43d4ed1ed9
parent 5f8aa175e8a0a0fff9031351052b2777b23e3d0c
2 files changed +2 -2
modified crates/radicle-cli/src/commands/issue.rs
@@ -45,7 +45,7 @@ pub fn run(args: Args, ctx: impl term::Context) -> anyhow::Result<()> {
    // with the [`EmptyArgs`] provided, if any.
    let command = args
        .command
-
        .unwrap_or(Command::List(args.list.unwrap_or_default().into()));
+
        .unwrap_or(Command::List(args.empty.unwrap_or_default().into()));
    let announce = !args.no_announce && command.should_announce_for();
    let mut issues = term::cob::issues_mut(&profile, &repo)?;

modified crates/radicle-cli/src/commands/issue/args.rs
@@ -61,7 +61,7 @@ pub struct Args {

    /// Arguments for the empty subcommand. Will fallback to [`Command::List`].
    #[clap(flatten)]
-
    pub(crate) list: Option<EmptyArgs>,
+
    pub(crate) empty: Option<EmptyArgs>,
}

/// Commands to create, view, and edit Radicle issues