mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-13 23:10:46 +08:00
cli: Consolidate policy/scope variants
* Policy::Track -> Policy::Allow * Scope::Trusted -> Scope::Followed
This commit is contained in:
@@ -176,7 +176,7 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
|
||||
let tracking = profile.tracking()?;
|
||||
if let Some(repo) = tracking.repo_policy(&rid)? {
|
||||
let tracking = match repo.policy {
|
||||
Policy::Track => term::format::positive("tracked"),
|
||||
Policy::Allow => term::format::positive("tracked"),
|
||||
Policy::Block => term::format::negative("blocked"),
|
||||
};
|
||||
println!(
|
||||
|
||||
@@ -25,15 +25,15 @@ Usage
|
||||
To delete a policy, use the `--delete` flag.
|
||||
|
||||
When seeding a repository, a scope can be specified: this can be either `all` or
|
||||
`trusted`. When using `all`, all remote nodes will be followed for that repository.
|
||||
On the other hand, with `trusted`, only the repository delegates will be followed,
|
||||
`followed`. When using `all`, all remote nodes will be followed for that repository.
|
||||
On the other hand, with `followed`, only the repository delegates will be followed,
|
||||
plus any remote that is explicitly followed via `rad follow <nid>`.
|
||||
|
||||
Options
|
||||
|
||||
--delete, -d Delete the seeding policy
|
||||
--[no-]fetch Fetch repository after updating seeding policy
|
||||
--scope <scope> Peer follow scope for a repository
|
||||
--scope <scope> Peer follow scope for this repository
|
||||
--verbose, -v Verbose output
|
||||
--help Print help
|
||||
"#,
|
||||
|
||||
Reference in New Issue
Block a user