diff --git a/CHANGELOG.md b/CHANGELOG.md index 62d39930f84cd38ec3d764ff93bce35cc469b2dd..efa7127fde7b3e5350fdc8bba86086387035a265 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,40 @@ List of changelogs ordered from latest to oldest +## [0.4.3-RC1] - 2025-05-17 +### Added / Changed +- Added support of `json` output for most commands through the usage of the global `-o`/ `--output-format` argument (to be given before any command). + - The default output remains the `human` format. +- Added possibility to use `vault inspect` command without interactive prompts (when providing all necessary arguments) +- To have a clean `json` output; those commands should be called with all necessary arguments so that no interactive prompt is required; which then allows to pipe the result to other commands like `jq` + - Example usage: + ```shell + gcli -o json vault inspect -v predef-sr//Alice --no-password | jq + { + "substrate_uri": "bottom drive obey lake curtain smoke basket hold race lonely fit walk//Alice", + "crypto_scheme": "sr25519", + "secret_seed": "e5be9a5092b81bca64be81d212e7f2f9eba183bb7a90954f7b76361f6edb5c0a", + "public_key_hex": "d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d", + "ss58_address": "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY", + "g1v1_public_key": null + } + ``` + +### Fixed +- None + +### Deprecated +- Two commands are still deprecated and will be removed in a future release: + - `gcli vault list-files` + - `gcli vault migrate` + +### Removed +- None + +### CI/CD +- None + + ## [0.4.2] - 2025-05-16 ### Added / Changed - Extra command `completion` added which takes a `--shell` argument to generate a completions script for a specified shell. diff --git a/Cargo.lock b/Cargo.lock index 40fbed419eac057f801df1e7666e3e1838c545e8..564506d1562ba189138c8ccbdda8a84737378e86 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2353,7 +2353,7 @@ dependencies = [ [[package]] name = "gcli" -version = "0.4.2" +version = "0.4.3-RC1" dependencies = [ "age", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 7b557429db04f8e4a9bdf39943bf2846814e8b2c..9014ad99913d4c034a7ca72a8e7053fc1fde645b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ license = "AGPL-3.0-only" name = "gcli" repository = "https://git.duniter.org/clients/rust/gcli-v2s" description = "A command-line interface for Duniter v2s uses" -version = "0.4.2" +version = "0.4.3-RC1" [dependencies] # subxt is main dependency @@ -88,4 +88,4 @@ assets = [ { source = "gcli-completion.bash", dest = "/etc/bash_completion.d/gcli", mode = "644" }, { source = "gcli-completion.zsh", dest = "/usr/local/share/zsh/site-functions/_gcli", mode = "644" }, { source = "gcli-completion.fish", dest = "/usr/share/fish/vendor_completions.d/gcli.fish", mode = "644" } -] \ No newline at end of file +]