Skip to content

Commit

Permalink
feat(cli): update clap to v4 (#159)
Browse files Browse the repository at this point in the history
* chore: update clap version

* feat: use the new derive attributes

* feat: add change set

* chore: fix wording

Co-authored-by: Tom Lienard <[email protected]>
  • Loading branch information
G3root and QuiiBz authored Oct 3, 2022
1 parent 9eda38b commit cbf1778
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 18 deletions.
5 changes: 5 additions & 0 deletions .changeset/silent-shrimps-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lagon/cli': minor
---

Update clap to v4
24 changes: 8 additions & 16 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion packages/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"

[dependencies]
lagon-runtime = { path = "../runtime" }
clap = { version = "3.2", features = ["derive"] }
clap = { version = "4.0.7", features = ["derive"] }
dialoguer = "0.10.2"
indicatif = "0.17.1"
colored = "2.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mod commands;
mod utils;

#[derive(Parser, Debug)]
#[clap(author, version, about, long_about = None, arg_required_else_help = true)]
#[command(author, version, about, long_about = None, arg_required_else_help = true)]
struct Cli {
#[clap(subcommand)]
command: Option<Commands>,
Expand Down

0 comments on commit cbf1778

Please sign in to comment.