Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: mark `rad fork` as obsolete
✗ CI failure Fintan Halpenny committed 3 months ago
commit ce488ea10c2699d245ff5ac656ad6863c64a2ef6
parent 02318f199c6f29a2eede1f282e1f9b99927d27ec
1 failed (1 total) View logs
3 files changed +5 -3
modified crates/radicle-cli/examples/rad-help.md
@@ -20,7 +20,7 @@ Commands:
  config    Manage your local Radicle configuration
  debug     Write out information to help debug your Radicle node remotely
  follow    Manage node follow policies
-
  fork      Create a fork of a repository
+
  fork      [OBSOLETE] Copy the default branch of the repository under the current user's namespace
  id        Manage repository identities
  inbox     Manage your Radicle notifications
  init      Initialize a Radicle repository
modified crates/radicle-cli/src/commands/fork.rs
@@ -4,11 +4,12 @@ use anyhow::Context as _;

use radicle::rad;

-
use crate::terminal as term;
+
use crate::{terminal as term, warning};

pub use args::Args;

pub fn run(args: Args, ctx: impl term::Context) -> anyhow::Result<()> {
+
    warning::obsolete("rad fork");
    let profile = ctx.profile()?;
    let signer = profile.signer()?;
    let storage = &profile.storage;
modified crates/radicle-cli/src/commands/fork/args.rs
@@ -1,6 +1,7 @@
use radicle::identity::RepoId;

-
const ABOUT: &str = "Create a fork of a repository";
+
const ABOUT: &str =
+
    "[OBSOLETE] Copy the default branch of the repository under the current user's namespace";

#[derive(Debug, clap::Parser)]
#[command(about = ABOUT, disable_version_flag = true)]