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

Allow passing -verbose to meta status #5516

Merged
merged 1 commit into from
Apr 11, 2019
Merged

Conversation

endocrimes
Copy link
Contributor

@endocrimes endocrimes commented Apr 4, 2019

A common issue when using nomad is needing to add in the object verb to
a command to include the -verbose flag.

This commit allows users to pass -verbose via the nomad status alias by
adding a placeholder boolean in the metacommand which allows subcommands
to parse the flag.

If anyone has suggestions as to alternative ways to allow this to be delegated (rather than parsing into an unused bool) then I'm happy to hear them, but I couldn't see any other obvious way.

@endocrimes endocrimes changed the title RFC: Allow passing -verbose to meta status Allow passing -verbose to meta status Apr 10, 2019
@endocrimes endocrimes requested a review from cgbaker April 10, 2019 12:45
Copy link
Contributor

@cgbaker cgbaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that pattern is the same one used elsewhere, LGTM

command/status.go Show resolved Hide resolved
A common issue when using nomad is needing to add in the object verb to
a command to include the `-verbose` flag.

This commit allows users to pass `-verbose` via the `nomad status` alias by
adding a placeholder boolean in the metacommand which allows subcommands
to parse the flag.
@endocrimes endocrimes merged commit 7764778 into master Apr 11, 2019
@endocrimes endocrimes deleted the dani/f-verbose-status branch April 11, 2019 11:31
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants