Skip to content

Commit

Permalink
refactor: use clap for cli parsing (dylibso#21)
Browse files Browse the repository at this point in the history
* chore(deps): add `clap`

Signed-off-by: Hunar Roop Kahlon <[email protected]>

* refactor(cli): rework the cli args to use `clap`

Signed-off-by: Hunar Roop Kahlon <[email protected]>

* chore: remove added newline in unchanged file

* fix: hermit-cli help message set correct output name

---------

Signed-off-by: Hunar Roop Kahlon <[email protected]>
Co-authored-by: Gavin Hayes <[email protected]>
  • Loading branch information
2 people authored and mtb0x1 committed Nov 2, 2023
1 parent 8ec342d commit 40ce616
Show file tree
Hide file tree
Showing 3 changed files with 242 additions and 56 deletions.
225 changes: 225 additions & 0 deletions hermit-cli/Cargo.lock

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

1 change: 1 addition & 0 deletions hermit-cli/crates/hermitfile-parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
clap = { version = "4.4.7", features = ["color", "error-context", "help", "std", "suggestions", "usage", "env", "wrap_help", "derive"] }
dockerfile-parser = { path = "../../../dockerfile-parser-rs" }
serde = { version = "1.0.188", features = ["derive"] }
serde_json = "1.0.107"
Expand Down
Loading

0 comments on commit 40ce616

Please sign in to comment.