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

vab, cli: refactor flag parsing, deprecate programmatic flag.FlagParser usage #294

Merged
merged 17 commits into from
Sep 9, 2024

Conversation

larpon
Copy link
Contributor

@larpon larpon commented Sep 8, 2024

This PR refactor flag handling in vab and vab.cli to be a bit more ergonomic to work with. The existing flag.FlagParser functionality is preserved, but deprecated.

This is the first step in simplifying the way vab works internally (and programmatically via vab.xyz usage).

The plan going forward is to allow for easier extending/reusing vab's powerful functionality in user space.

I hope to bring support for user space supplied commands that can be installed and run via vab itself to allow for extending vab's support for user space projects.

And example of such a user space command, could be a command that brings vlang/sdl support to vab via e.g.:
vab sdl --archs arm64-v8a run ~/.vmodules/sdl/examples/basic_window the same could then be done for e.g. various raylib wrappers etc.

@larpon larpon marked this pull request as draft September 8, 2024 14:22
@larpon larpon marked this pull request as ready for review September 8, 2024 14:33
@larpon larpon merged commit c47c4e8 into vlang:master Sep 9, 2024
23 checks passed
@larpon larpon deleted the cli/refactor-flag-parsing branch September 9, 2024 16:12
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