Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite vsvg-cli using bpaf #153

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Rewrite vsvg-cli using bpaf #153

wants to merge 2 commits into from

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.

1 participant