diff --git a/radicle-cli/examples/rad-seed-many.md b/radicle-cli/examples/rad-seed-many.md new file mode 100644 index 00000000..d06ee3d9 --- /dev/null +++ b/radicle-cli/examples/rad-seed-many.md @@ -0,0 +1,11 @@ +It is possible to use the `rad seed` command to specify multiple RIDs at the +same time, where each repository specified will be fetched (unless `--no-fetch` +is used): + +``` +$ rad seed rad:z3Rry7rpdWuGpfjPYGzdJKQADsoNW rad:z3zTnCfi6cVSZG8eCGn6AMDypgAPm +✓ Seeding policy updated for rad:z3Rry7rpdWuGpfjPYGzdJKQADsoNW with scope 'all' +✓ Fetching rad:z3Rry7rpdWuGpfjPYGzdJKQADsoNW from z6Mkt67…v4N1tRk@[..] +✓ Seeding policy updated for rad:z3zTnCfi6cVSZG8eCGn6AMDypgAPm with scope 'all' +✓ Fetching rad:z3zTnCfi6cVSZG8eCGn6AMDypgAPm from z6Mkt67…v4N1tRk@[..] +``` diff --git a/radicle-cli/src/commands/seed.rs b/radicle-cli/src/commands/seed.rs index 507566b2..bfd4c02f 100644 --- a/radicle-cli/src/commands/seed.rs +++ b/radicle-cli/src/commands/seed.rs @@ -4,6 +4,7 @@ use std::time; use anyhow::anyhow; +use nonempty::NonEmpty; use radicle::node::policy; use radicle::node::policy::{Policy, Scope}; use radicle::node::Handle; @@ -22,7 +23,7 @@ pub const HELP: Help = Help { usage: r#" Usage - rad seed [] [--[no-]fetch] [--from ] [--scope ] [