Skip to content

Rewrite vsvg-cli using bpaf#153

Draft
abey79 wants to merge 2 commits into
masterfrom
bpaf-migration-v2
Draft

Rewrite vsvg-cli using bpaf#153
abey79 wants to merge 2 commits into
masterfrom
bpaf-migration-v2

Conversation

@abey79

@abey79 abey79 commented Sep 22, 2024

Copy link
Copy Markdown
Owner

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.

1 participant