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 prefix-search and auto-completion for scaling policy info command #9964

Merged
merged 6 commits into from
Feb 4, 2021

Conversation

cgbaker
Copy link
Contributor

@cgbaker cgbaker commented Feb 3, 2021

also, i think there was some bad boolean logic in a few other info-like commands

resolves #9787

@@ -115,7 +115,7 @@ func (c *AllocStatusCommand) Run(args []string) int {
}

// If args not specified but output format is specified, format and output the allocations data list
if len(args) == 0 && json || len(tmpl) > 0 {
if len(args) == 0 && (json || len(tmpl) > 0) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we only want to do this if there were no args... previous parsing would go into list mode with args if template was specified, which i think was not the intended behavior. same below for eval status and job inspect.

Copy link
Contributor

@lgfa29 lgfa29 left a comment

Choose a reason for hiding this comment

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

LGTM!

I added a few notes, but nothing major.

command/scaling_policy_info.go Show resolved Hide resolved
command/scaling_policy_info.go Outdated Show resolved Hide resolved
command/scaling_policy_info_test.go Outdated Show resolved Hide resolved
command/scaling_policy_list.go Outdated Show resolved Hide resolved
@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 Nov 29, 2022
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.

cli: scaling policy info should support prefix search
2 participants