Skip to content

Commit

Permalink
CLI Changes Sub-PR: New structure and parsing logic (#591)
Browse files Browse the repository at this point in the history
* Add env feature to clap and cargo update

* Dead Code: WIP CLI changes

* Dead Code: CLI feature parity

Although see clap-rs/clap#5020

* Note about not (yet) using infer_subcommands

See clap-rs/clap#5021

* Use clap/wrap_help

Although see clap-rs/clap#5022

* WIP: Strip out previous CLI argument parser setup

[skip ci]

* WIP: Normalise arguments for caller

[skip ci]

* Don't check for file-ness in the CLI argument parser

* File and directory canonicalisation for the argument parser

* Expose CLI types so they can be used downstream
  • Loading branch information
Xophmeister authored Aug 14, 2023
1 parent 8b34ccc commit 837ae31
Show file tree
Hide file tree
Showing 7 changed files with 288 additions and 142 deletions.
83 changes: 47 additions & 36 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion topiary-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ path = "src/main.rs"
[dependencies]
# For now we just load the tree-sitter language parsers statically.
# Eventually we will want to dynamically load them, like Helix does.
clap = { workspace = true, features = ["derive"] }
# NOTE clap/wrap_help isn't perfect (see clap-rs/clap#5022)
clap = { workspace = true, features = ["derive", "env", "wrap_help"] }
env_logger = { workspace = true }
futures = { workspace = true }
directories = { workspace = true }
Expand Down
Loading

0 comments on commit 837ae31

Please sign in to comment.