Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
REVIEW: move args to module
✗ CI failure Erik Kundt committed 7 months ago
commit cfe426f3d846b02e00509674f6a11718f0dc15c2
parent 47903e45298dbc064dae22597f5443b6f476ffc2
1 failed 2 pending (3 total) View logs
2 files changed +10 -6
modified crates/radicle-cli/src/commands/path.rs
@@ -1,14 +1,11 @@
-
use clap::Parser;
+
mod args;

use radicle::profile;

use crate::terminal as term;

-
pub const ABOUT: &str = "Display the Radicle home path";
-

-
#[derive(Parser, Debug)]
-
#[command(about = ABOUT, disable_version_flag = true)]
-
pub struct Args {}
+
pub use args::Args;
+
pub(crate) use args::ABOUT;

pub fn run(_args: Args, _ctx: impl term::Context) -> anyhow::Result<()> {
    let home = profile::home()?;
added crates/radicle-cli/src/commands/path/args.rs
@@ -0,0 +1,7 @@
+
use clap::Parser;
+

+
pub const ABOUT: &str = "Display the Radicle home path";
+

+
#[derive(Parser, Debug)]
+
#[command(about = ABOUT, disable_version_flag = true)]
+
pub struct Args {}