Skip to content

Commit

Permalink
refactor(hok): switch from clap builder to clap derive
Browse files Browse the repository at this point in the history
Signed-off-by: Chawye Hsu <su+git@chawyehsu.com>
  • Loading branch information
chawyehsu committed Dec 9, 2024
1 parent 5365a4f commit 056ddfe
Show file tree
Hide file tree
Showing 22 changed files with 643 additions and 812 deletions.
20 changes: 20 additions & 0 deletions Cargo.lock

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

6 changes: 1 addition & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,9 @@ members = ["crates/libscoop", "crates/scoop_hash"]
[lib]
path = "src/lib.rs"

[[bin]]
name = "hok"
path = "src/main.rs"

[dependencies]
anyhow = "1.0"
clap = { version = "4.3", features = ["wrap_help", "cargo"] }
clap = { version = "4.3", features = ["wrap_help", "cargo", "derive"] }
crossterm = "0.28"
env_logger = "0.8.3"
indicatif = "0.17.5"
Expand Down
3 changes: 3 additions & 0 deletions src/bin/hok.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pub fn main() {
std::process::exit(hok::create_app() as i32);
}
Loading

0 comments on commit 056ddfe

Please sign in to comment.