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

Fix CLI help issues #854

Merged
merged 3 commits into from
Feb 4, 2015
Merged

Conversation

fabianofranz
Copy link
Member

Addresses bug 1169685 and all other remaining help issues.

@fabianofranz
Copy link
Member Author

@smarterclayton this addresses the remaining 'help' issues.

@smarterclayton
Copy link
Contributor

can you link the upstream pulls here?

@fabianofranz
Copy link
Member Author

@smarterclayton Upstream PR here: spf13/cobra#51

@fabianofranz
Copy link
Member Author

@smarterclayton Take a look at hack/test-cmd.sh. I added several test cases there to cover all help scenarios, need to make sure that's what we expect and everything is covered.

@smarterclayton
Copy link
Contributor

LGTM - jessica and I brainstormed some help improvements today - can be done in another issue, but things like:

  • create global options help command ("options") which we add to "osc", and then omit all globals from the help template, except maybe a few important ones and a generic "osc help options for more" tagline.
  • when help shows subcommands, don't show anything except the command name (omit the usage chunks)
  • Nuke the usage section on each command, people should always specify their own usage line, and then put other examples. I don't think we can fix this within Cobra without invasive changes, so we can do the simpler option (having it in long desc) now.
  • double check all commands for having short descriptions
  • get upstream commands to parameterize their short desc with an arg (or we can do a find and replace with a wrapper function for kubectl on specific commands).

@fabianofranz
Copy link
Member Author

[merge]

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_openshift3/804/) (Image: devenv-fedora_689)

@openshift-bot
Copy link
Contributor

Evaluated for origin up to e2a70de

@fabianofranz
Copy link
Member Author

@smarterclayton Nice, pretty much what I was thinking too. I'll try to keep the invasive changes as much outside of Cobra / parameterized / custom funcs as possible, but I foresee at some point we forking it (already not completely confident I'll get my recent upstream proposals merged).

@fabianofranz
Copy link
Member Author

@smarterclayton I'll copy these brainstorming ideas to a Github issue.

@smarterclayton
Copy link
Contributor

Let's try to delay forking as long as possible.

On Feb 4, 2015, at 9:29 AM, Fabiano Franz notifications@github.com wrote:

@smarterclayton Nice, pretty much what I was thinking too. I'll try to keep the invasive changes as much outside of Cobra / parameterized / custom funcs as possible, but I foresee at some point we forking it (already not completely confident I'll get my recent upstream proposals merged).


Reply to this email directly or view it on GitHub.

@smarterclayton
Copy link
Contributor

Can you do a quick pass on the easiest ones here today? I want our help to be reasonable in beta.

On Feb 4, 2015, at 9:31 AM, Fabiano Franz notifications@github.com wrote:

@smarterclayton I'll copy these brainstorming ideas to a Github issue.


Reply to this email directly or view it on GitHub.

openshift-bot pushed a commit that referenced this pull request Feb 4, 2015
@openshift-bot openshift-bot merged commit fe977be into openshift:master Feb 4, 2015
jpeeler pushed a commit to jpeeler/origin that referenced this pull request Jun 15, 2017
…service-catalog/' changes from c91fecb..1bfff53

1bfff53 instance never provisioned should just delete (openshift#891)
1ae26db Adding a fake broker server (openshift#928)
6403076 docs: fix quoting issue, clarify naming in auth.md (openshift#931)
8ac0775 Merge branch 'pr/927'
02af952 Merge branch 'pr/876'
2aa84f9 add Jenkins badge to README
0c08788 Brokers must have at least one service (openshift#930)
cbfa39b Add PodPreset support (openshift#917)
0d9b810 refactor Jenkins GitHub status postback to work on non-PR commits (openshift#916)
066159d Converting the AuthSecret field to a union AuthInfo type (openshift#877)
203af5c Add leader election namespace configuration (openshift#920)
5831502 Add example JSON schema to controller unit tests (openshift#918)
b78ab99 Fix usage of finalizers (openshift#894)
d3d29f0 Enable pprof in controller-manager (openshift#896)
f4233a0 Correct parameter schema support (openshift#912)
05c6f00 bump image tags from v0.0.8 to v0.0.9 (openshift#910)
97d278a Add support for OSB parameter schemas (openshift#822)
3e4120e Fix nil dereference panic on request timeout (openshift#906)
d8c7494 Add feature gate for audit options in helm chart (openshift#904)
89ce1cd Decompose controller unit tests (openshift#899)
a1e83b2 Add e2e for walkthrough (openshift#832)
4679685 Add support for audit log options (openshift#897)
262a94f Do not allow updates to an object if asynchronous operation is in progress (openshift#853)
7295dad Validate that a ServiceClass must have at least one plan (openshift#879)
9db9fa4 Decompose controller.go (openshift#893)
c3ea9bd Nits in our types (openshift#854)
1d8280a bump tags from v0.0.7 to v0.0.8 (openshift#892)
5e6925d Clean up the OSB client (openshift#888)
fe6aee9 cleaning up logs and adding more log detail (openshift#874)
f41516f Detect if a TPR update represents a soft delete (openshift#836)
9ce99f3 Add functions on Makefile for build and tag
REVERT: c91fecb Merge pull request openshift#1 from jpeeler/origin-build
REVERT: 55ccf3d origin build: add _output to .gitignore
REVERT: 8352e14 origin build: make build-go and build-cross work
REVERT: d969641 origin build: modify hard coded path
REVERT: 30000cc origin build: add origin tooling

git-subtree-dir: cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog
git-subtree-split: 1bfff53
jpeeler pushed a commit to jpeeler/origin that referenced this pull request Jun 15, 2017
…service-catalog/' changes from c91fecb..568a7b9

568a7b9 origin build: add origin tooling
1bfff53 instance never provisioned should just delete (openshift#891)
1ae26db Adding a fake broker server (openshift#928)
6403076 docs: fix quoting issue, clarify naming in auth.md (openshift#931)
8ac0775 Merge branch 'pr/927'
02af952 Merge branch 'pr/876'
2aa84f9 add Jenkins badge to README
0c08788 Brokers must have at least one service (openshift#930)
cbfa39b Add PodPreset support (openshift#917)
0d9b810 refactor Jenkins GitHub status postback to work on non-PR commits (openshift#916)
066159d Converting the AuthSecret field to a union AuthInfo type (openshift#877)
203af5c Add leader election namespace configuration (openshift#920)
5831502 Add example JSON schema to controller unit tests (openshift#918)
b78ab99 Fix usage of finalizers (openshift#894)
d3d29f0 Enable pprof in controller-manager (openshift#896)
f4233a0 Correct parameter schema support (openshift#912)
05c6f00 bump image tags from v0.0.8 to v0.0.9 (openshift#910)
97d278a Add support for OSB parameter schemas (openshift#822)
3e4120e Fix nil dereference panic on request timeout (openshift#906)
d8c7494 Add feature gate for audit options in helm chart (openshift#904)
89ce1cd Decompose controller unit tests (openshift#899)
a1e83b2 Add e2e for walkthrough (openshift#832)
4679685 Add support for audit log options (openshift#897)
262a94f Do not allow updates to an object if asynchronous operation is in progress (openshift#853)
7295dad Validate that a ServiceClass must have at least one plan (openshift#879)
9db9fa4 Decompose controller.go (openshift#893)
c3ea9bd Nits in our types (openshift#854)
1d8280a bump tags from v0.0.7 to v0.0.8 (openshift#892)
5e6925d Clean up the OSB client (openshift#888)
fe6aee9 cleaning up logs and adding more log detail (openshift#874)
f41516f Detect if a TPR update represents a soft delete (openshift#836)
9ce99f3 Add functions on Makefile for build and tag
REVERT: c91fecb Merge pull request openshift#1 from jpeeler/origin-build
REVERT: 55ccf3d origin build: add _output to .gitignore
REVERT: 8352e14 origin build: make build-go and build-cross work
REVERT: d969641 origin build: modify hard coded path
REVERT: 30000cc origin build: add origin tooling

git-subtree-dir: cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog
git-subtree-split: 568a7b9dbdc4fdd1fabffdd52af030ec73124b89
sjenning pushed a commit to sjenning/origin that referenced this pull request Jan 5, 2018
…mespaces

[3.6] [Backport] Fix filter namespaces in template router

Manually merging because the automated tooling is broken.
jpeeler pushed a commit to jpeeler/origin that referenced this pull request Feb 1, 2018
Just minor things in comments that I noticed while reviewing the model.

Signed-off-by: Doug Davis <dug@us.ibm.com>
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.

3 participants