From 45a2c05a9e3881353d9d9d2e7fc6aba58206b09d Mon Sep 17 00:00:00 2001 From: cloudhead Date: Sun, 3 Sep 2023 17:20:27 +0200 Subject: [PATCH] cli: Explain how to publish a repo on `rad init` --- radicle-cli/examples/rad-init-private.md | 2 ++ radicle-cli/src/commands/init.rs | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/radicle-cli/examples/rad-init-private.md b/radicle-cli/examples/rad-init-private.md index 074d3211..93953391 100644 --- a/radicle-cli/examples/rad-init-private.md +++ b/radicle-cli/examples/rad-init-private.md @@ -12,6 +12,8 @@ You can show it any time by running `rad .` from this directory. You have created a private repository. This repository will only be visible to you, and to peers you explicitly allow. + +To make it public, run `rad publish`. To push changes, run `git push`. ``` diff --git a/radicle-cli/src/commands/init.rs b/radicle-cli/src/commands/init.rs index 5e2fb62c..c8f9747a 100644 --- a/radicle-cli/src/commands/init.rs +++ b/radicle-cli/src/commands/init.rs @@ -357,15 +357,19 @@ pub fn announce(doc: Doc, node: &mut Node) -> anyhow::Result<()> { ); } } else { - // TODO: Tell users how to make the project public. term::info!( "You have created a {} repository.", - term::format::yellow("private") + term::format::visibility(&doc.visibility) ); term::info!( "This repository will only be visible to you, \ and to peers you explicitly allow.", ); + term::blank(); + term::info!( + "To make it public, run {}.", + term::format::command("rad publish") + ); } Ok(())