From 186d8d30fe2365d0f3f68f3bdf17f045bad7a107 Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Wed, 18 Feb 2026 11:12:35 +0000 Subject: [PATCH] cli: Update to 0.18.0 --- Cargo.lock | 2 +- Cargo.toml | 2 +- crates/radicle-cli/CHANGELOG.md | 64 +++++++++++++++++++++++++++++++++ crates/radicle-cli/Cargo.toml | 2 +- 4 files changed, 67 insertions(+), 3 deletions(-) create mode 100644 crates/radicle-cli/CHANGELOG.md diff --git a/Cargo.lock b/Cargo.lock index 2f32c339..e370560e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2931,7 +2931,7 @@ dependencies = [ [[package]] name = "radicle-cli" -version = "0.17.0" +version = "0.18.0" dependencies = [ "anyhow", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 16c3bc78..a05fb329 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,7 +44,7 @@ proptest = "1.9" qcheck = { version = "1", default-features = false } qcheck-macros = { version = "1", default-features = false } radicle = { version = "0.21", path = "crates/radicle" } -radicle-cli = { version = "0.17", path = "crates/radicle-cli" } +radicle-cli = { version = "0.18", path = "crates/radicle-cli" } radicle-cli-test = { path = "crates/radicle-cli-test" } radicle-cob = { version = "0.17", path = "crates/radicle-cob" } radicle-core = { version = "0.1", path = "crates/radicle-core" } diff --git a/crates/radicle-cli/CHANGELOG.md b/crates/radicle-cli/CHANGELOG.md new file mode 100644 index 00000000..39f8d457 --- /dev/null +++ b/crates/radicle-cli/CHANGELOG.md @@ -0,0 +1,64 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +### Added + +### Changed + +### Removed + +### Security + +## 0.18.0 + +### Changed + +- `radicle_cli::terminal::fail` now takes 1 parameter, the `anyhow::Error` + instead of 2. +- `radicle_cli::commands::diff::run` now delegates to the `git diff` process, + and only accepts the `Vec` args. + +### Removed + +The `radicle-cli` crate is refactored to use the `clap` crate, and as a result +many things were removed from the public API. + +- The `radicle_cli::terminal::args` module was removed, including the `Args` + trait, the `Help` struct, the `Error` enum, and all parsing functions + (`parse_value`, `finish`, `format`, `refstring`, `did`, `nid`, `rid`, + `pubkey`, `addr`, `socket_addr`, `number`, `seconds`, `milliseconds`, + `string`, `rev`, `oid`, `alias`, `issue`, `patch`, `cob`). +- The `radicle_cli::terminal::Command` trait was removed. +- `radicle_cli::terminal::run_command`, `radicle_cli::terminal::run_command_args`, + and `radicle_cli::terminal::run_command_fn` were removed. +- The `radicle_cli::commands::help` module was removed, including + `help::Options` and `help::run`. +- `radicle_cli::git::parse_remote` was removed. +- The `HELP` constant was removed from the following command modules: `auth`, + `block`, `checkout`, `clone`, `cob`, `config`, `debug`, `diff`, `follow`, + `fork`, `help`, `id`, `inbox`, `init`, `inspect`, `ls`, `node`, `patch`, + `publish`, `remote`, `seed`, `self`, `sync`, `unblock`, `watch`. +- The `Options` struct was removed from the following command modules: `auth`, + `block`, `checkout`, `clone`, `cob`, `config`, `debug`, `diff`, `follow`, + `fork`, `help`, `id`, `inbox`, `init`, `inspect`, `ls`, `node`, `patch`, + `publish`, `remote`, `seed`, `rad_self`, `sync`, `unblock`, `watch`. +- `radicle_cli::commands::patch::AssignOptions`, + `radicle_cli::commands::patch::LabelOptions`, and + `radicle_cli::commands::patch::CommentOperation` were removed. +- The following enums were removed from their respective command modules: + `follow::Operation`, `follow::OperationName`, `id::Operation`, + `id::OperationName`, `inspect::Target`, `node::Addr`, `node::Operation`, + `node::OperationName`, `patch::Operation`, `patch::OperationName`, + `remote::Operation`, `remote::OperationName`, `remote::ListOption`, + `seed::Operation`, `sync::Operation`, `sync::SyncDirection`, + `sync::SyncMode`, `sync::SortBy`. + +### Security + +*No security updates.* diff --git a/crates/radicle-cli/Cargo.toml b/crates/radicle-cli/Cargo.toml index 33f541cf..6012fa43 100644 --- a/crates/radicle-cli/Cargo.toml +++ b/crates/radicle-cli/Cargo.toml @@ -3,7 +3,7 @@ name = "radicle-cli" description = "Radicle CLI" homepage.workspace = true license.workspace = true -version = "0.17.0" +version = "0.18.0" authors = ["cloudhead "] edition.workspace = true build = "build.rs"