Skip to content

Commit

Permalink
Allow for man page and completion generation at runtime and add Nushe…
Browse files Browse the repository at this point in the history
…ll support
  • Loading branch information
fgimian committed Dec 31, 2024
1 parent 0116e82 commit efa5ee0
Show file tree
Hide file tree
Showing 5 changed files with 415 additions and 236 deletions.
11 changes: 11 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ anyhow = "1.0.38"
brotli = { version = "3.3.0", default-features = false, features = ["std"] }
chardetng = "0.1.15"
clap = { version = "4.4", features = ["derive", "wrap_help", "string"] }
clap_complete = { version = "4.4", optional = true }
clap_complete = "4.4"
cookie_store = { version = "0.20.0", features = ["preserve_order"] }
digest_auth = "0.3.0"
dirs = "5.0"
Expand All @@ -38,7 +38,7 @@ once_cell = "1.8.0"
os_display = "0.1.3"
pem = "3.0"
regex-lite = "0.1.5"
roff = { version = "0.2.1", optional = true }
roff = "0.2.1"
rpassword = "7.2.0"
serde = { version = "1.0", features = ["derive"] }
serde-transcode = "1.1.1"
Expand All @@ -57,6 +57,7 @@ log = "0.4.21"
# The rustls version number should be kept in sync with hyper/reqwest.
rustls = { version = "0.23.14", optional = true, default-features = false, features = ["logging"] }
tracing = { version = "0.1.41", default-features = false, features = ["log"] }
clap_complete_nushell = "4.5.4"

[dependencies.reqwest]
version = "0.12.3"
Expand Down Expand Up @@ -101,7 +102,6 @@ network-interface = ["dep:network-interface"]

online-tests = []
ipv6-tests = []
man-completion-gen = ["clap_complete", "roff"]

[package.metadata.cross.build.env]
passthrough = ["CARGO_PROFILE_RELEASE_LTO"]
Expand Down
2 changes: 1 addition & 1 deletion RELEASE-CHECKLIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- Bump up the version in `Cargo.toml` and run `cargo check` to update `Cargo.lock`.
- Run the following to update man pages and shell-completion files.
```sh
cargo run --all-features -- generate-completions completions && cargo run --all-features -- generate-manpages doc
cargo run -- --generate complete-all --generate-to completions && cargo run -- --generate man-pages --generate-to doc
```
- Commit changes and push them to remote.
- Add git tag e.g `git tag v0.9.0`.
Expand Down
Loading

0 comments on commit efa5ee0

Please sign in to comment.