radicle-heartwood-lfs/crates/radicle/src
Fintan Halpenny 3c89525003 cli/sync: migrate to clap
Due to the idiosyncracies of this command there are a few things to note about
this migration.

The `rad sync` command acts as a default subcommand in itself, in that it has
options that do not apply to its subcommand, `rad sync status`. This means that
the options will print with `rad sync --help`, but they will not print with `rad
sync status`.

The `--inventory` flag is not compatible with any of the other flags and
options, thus they are all marked with `conflicts_with`. This cannot be done for
a positional argument, so `clap` will "helpfully" print out the usage, for
example, as:

    error: the argument '--inventory' cannot be used with '--fetch'

    Usage: rad sync --inventory [RID]

    For more information, try '--help'.

Which is incorrect, since `RID` is ignored. This is explained in the `--help`
documentation for `--inventory`.

Co-authored-by: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
2025-11-01 10:52:13 +01:00
..
canonical chore: Automated fixes generated by clippy 2025-07-25 11:25:05 +02:00
cob radicle/cob/db: Add index for issues and patches 2025-10-25 10:22:50 +02:00
git workspace/rust/clippy: Fix all warnings 2025-10-17 12:56:43 +02:00
identity workspace/rust/clippy: Fix all warnings 2025-10-17 12:56:43 +02:00
logger radicle: Move logging setup calls to binaries 2025-08-07 08:30:59 +01:00
node cli/sync: migrate to clap 2025-11-01 10:52:13 +01:00
profile radicle: improve config errors 2025-06-24 13:51:55 +02:00
storage workspace/rust/clippy: Fix all warnings 2025-10-17 12:56:43 +02:00
test workspace/rust/clippy: Fix all warnings 2025-10-17 12:56:43 +02:00
canonical.rs repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
cli.rs repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
cob.rs workspace: A Little Less `git2` 2025-10-13 16:14:23 +02:00
collections.rs repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
explorer.rs radicle/explorer: Allow overriding default URL 2025-09-04 16:44:05 +03:00
git.rs workspace/rust/clippy: Fix all warnings 2025-10-17 12:56:43 +02:00
identity.rs radicle: canonical references payload 2025-07-16 16:41:16 +02:00
io.rs radicle: Only set file limits on Unix 2025-07-23 10:31:13 +02:00
lib.rs workspace: A Little Less `git2` 2025-10-13 16:14:23 +02:00
logger.rs radicle: Move logging setup calls to binaries 2025-08-07 08:30:59 +01:00
node.rs node: Re-export `PeerAddrParseError` 2025-10-22 11:27:23 +01:00
profile.rs radicle/profile: Canonicalize during test 2025-10-13 08:43:49 +01:00
rad.rs radicle/rad: Fix typo 2025-10-20 15:09:43 +01:00
schemars_ext.rs workspace: A Little Less `git2` 2025-10-13 16:14:23 +02:00
serde_ext.rs repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
sql.rs repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
storage.rs workspace/rust/clippy: Fix all warnings 2025-10-17 12:56:43 +02:00
test.rs workspace: A Little Less `git2` 2025-10-13 16:14:23 +02:00
version.rs repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00
web.rs radicle: Keep pinned repos ordered in config 2025-07-19 12:59:02 +01:00