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

add "sbx help <cmd>"; parse command args #6

Closed
wants to merge 1 commit into from

Conversation

hspearman
Copy link
Contributor

@hspearman hspearman commented Dec 18, 2024

this adds sbx help <cmd> to get more info on what a command does (for example, what flags it accepts).

this is a precursor to add a duration flag to up, as this sets us up to add documented flags to the up command.

under the hood, this also adds the ability to parse additional args for each command (right now, only help uses this).

this adds `sbx help <cmd>` to get more info on what a
command does (for example, what flags it accepts).

this is a precursor to add a `duration` flag to `up`, as this sets us up
to add documented flags to the `up` command.

under the hood, this also adds the ability to parse additional args
for each command (right now, only `help` uses this).
@hspearman
Copy link
Contributor Author

pausing this until next year. based on the way go clis parse flags and subcommands, might need to revisit this interface.

https://pkg.go.dev/flag
https://pkg.go.dev/github.com/google/subcommands

@hspearman hspearman closed this Dec 18, 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