Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@abey79
Copy link
Owner

@abey79 abey79 commented Sep 22, 2024

This PR is a complete rewrite of vsvg-cli.

I initially used clap as the "ecosystem default" CLI toolkit, but it unfortunately doesn't have support for command chaining (yet? clap-rs/clap#2222). As a result, vsvg-cli had an extremely bad, for-tests-only CLI UX.

With this PR, vsvg-cli now uses bpaf, which has a pretty good support for command chaining, which means that vsvg-cli now has a much improved CLI UX, similar to vpype.

Specifically, this PR:

  • provides the initial bpaf-based setup
  • implements a seemingly random set of commands (mainly as proof-of-concept)
  • (compared to vpype) introduce the concept of "context", e.g. stateful selection of (currently) layers upon which further command will act

@abey79 abey79 changed the title bpaf-migration-v2 Rewrite vsvg-cli using bpaf Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants