-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Support bash-completion #2090
Support bash-completion #2090
Conversation
Can you split this into a few commits? The first should be the core code that can generate docs, the second should be the changes necessary to cleanup the docs/scripts/completions, and the third should be any of the generated code. Thanks |
Sure, I did it. |
Handing off to Fabiano for review |
Reviewing, @eparis you may want to jump in too. |
|
||
flags+=("--filename=") | ||
flags_with_completion+=("--filename") | ||
flags_completion+=("_filedir '@(json|yaml|yml)'") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I included this request pull/8039 Now I think I fixed all reviewed points. |
__osc_get_containers() | ||
{ | ||
local template | ||
template="{{ range .desiredState.manifest.containers }}{{ .name }} {{ end }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this still broken? Move to v1beta3 template form and LGTM
@eparis Thank you so much. |
LGTM [merge] |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/1931/) (Image: devenv-fedora_1513) |
Evaluated for origin up to 0912dd3 |
This PR adds bash-completion support.
Running
$./hack/run-gendoc.sh
will create bash-completion scriptsrel-eng/completions/bash/{openshift,osc,osadm}