-
- Downloads
gcli command auto completion and arm64 build
- Extra command `completion` added which takes a `--shell` argument to generate a completions script for a specified shell. - Adapted the Linux (amd64) build to: - generate the `gcli-completion.bash`, `gcli-completion.zsh`, `gcli-completion.fish`, `gcli-completion.ps1` completion scripts - add the `bash`, `zsh` and `fish` completion scripts in the `.deb` package - Added the ARM64 build generating a binary and a `.deb` package that also include those completion scripts.
parent
bb54cc00
No related branches found
No related tags found
... | ... | @@ -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.1" | ||
version = "0.4.2" | ||
[dependencies] | ||
# subxt is main dependency | ||
... | ... | @@ -27,6 +27,7 @@ sp-runtime = { git = "https://github.com/duniter/duniter-polkadot-sdk.git", bran |
# crates.io dependencies | ||
anyhow = "^1.0" | ||
clap = { version = "^4.5.19", features = ["derive"] } | ||
clap_complete = "^4.5.19" | ||
codec = { package = "parity-scale-codec", version = "^3.6.12" } | ||
env_logger = "^0.10" | ||
futures = "^0.3.30" | ||
... | ... | @@ -68,3 +69,22 @@ g1 = [] |
name = "gcli" | ||
identifier = "com.axiomteam.gcli" | ||
icon = ["gcli.png"] | ||
# Used by gitlab ci to add extra assets in the .deb packages (both amd64 & arm64) | ||
# Those gcli-completion.* assets are created during gitlab ci "build_linux" | ||
#Documentation in https://github.com/kornelski/cargo-deb | ||
[package.metadata.deb] | ||
assets = [ | ||
# Examples | ||
#target/release path is special, and gets replaced by cargo-deb with the actual target dir path. | ||
#["target/release/cargo-deb", "usr/bin/", "755"], | ||
#both array and object syntaxes are equivalent: | ||
#{ source = "README.md", dest = "usr/share/doc/cargo-deb/README", mode = "644"}, | ||
# Bin has to be manually added since we override the default "assets" | ||
{ source = "target/release/gcli", dest = "usr/bin/", mode = "755" }, | ||
# The extra shell completion script 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 |
Please register or sign in to comment