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

Support bash-completion #2090

Merged
merged 2 commits into from
May 14, 2015
Merged

Support bash-completion #2090

merged 2 commits into from
May 14, 2015

Conversation

nak3
Copy link
Contributor

@nak3 nak3 commented May 6, 2015

This PR adds bash-completion support.
Running $./hack/run-gendoc.sh will create bash-completion scripts rel-eng/completions/bash/{openshift,osc,osadm}

@smarterclayton
Copy link
Contributor

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

@nak3
Copy link
Contributor Author

nak3 commented May 6, 2015

Sure, I did it.

@smarterclayton
Copy link
Contributor

Handing off to Fabiano for review

@fabianofranz
Copy link
Member

Reviewing, @eparis you may want to jump in too.


flags+=("--filename=")
flags_with_completion+=("--filename")
flags_completion+=("_filedir '@(json|yaml|yml)'")
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't work.

Copy link
Member

Choose a reason for hiding this comment

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

@nak3
Copy link
Contributor Author

nak3 commented May 12, 2015

I included this request pull/8039

Now I think I fixed all reviewed points.
Please let me know if I can squash commits.

__osc_get_containers()
{
local template
template="{{ range .desiredState.manifest.containers }}{{ .name }} {{ end }}"
Copy link
Member

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

@nak3
Copy link
Contributor Author

nak3 commented May 12, 2015

@eparis Thank you so much.
@smarterclayton @fabianofranz I squash all commits, but if you prefer split commits, please let me know. I will split this again.

@smarterclayton
Copy link
Contributor

LGTM [merge]

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/1931/) (Image: devenv-fedora_1513)

@openshift-bot
Copy link
Contributor

Evaluated for origin up to 0912dd3

@openshift-bot openshift-bot merged commit 0912dd3 into openshift:master May 14, 2015
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.

None yet

6 participants