Skip to content

Commit

Permalink
Add verbose output for oadm groups new
Browse files Browse the repository at this point in the history
  • Loading branch information
enj committed Aug 31, 2016
1 parent 9263996 commit 6023594
Show file tree
Hide file tree
Showing 15 changed files with 362 additions and 10 deletions.
18 changes: 18 additions & 0 deletions contrib/completions/bash/oadm
Original file line number Diff line number Diff line change
Expand Up @@ -1846,6 +1846,24 @@ _oadm_groups_new()
flags_with_completion=()
flags_completion=()

flags+=("--no-headers")
local_nonpersistent_flags+=("--no-headers")
flags+=("--output=")
two_word_flags+=("-o")
local_nonpersistent_flags+=("--output=")
flags+=("--output-version=")
local_nonpersistent_flags+=("--output-version=")
flags+=("--show-all")
flags+=("-a")
local_nonpersistent_flags+=("--show-all")
flags+=("--show-labels")
local_nonpersistent_flags+=("--show-labels")
flags+=("--sort-by=")
local_nonpersistent_flags+=("--sort-by=")
flags+=("--template=")
flags_with_completion+=("--template")
flags_completion+=("_filedir")
local_nonpersistent_flags+=("--template=")
flags+=("--api-version=")
flags+=("--as=")
flags+=("--certificate-authority=")
Expand Down
18 changes: 18 additions & 0 deletions contrib/completions/bash/oc
Original file line number Diff line number Diff line change
Expand Up @@ -1942,6 +1942,24 @@ _oc_adm_groups_new()
flags_with_completion=()
flags_completion=()

flags+=("--no-headers")
local_nonpersistent_flags+=("--no-headers")
flags+=("--output=")
two_word_flags+=("-o")
local_nonpersistent_flags+=("--output=")
flags+=("--output-version=")
local_nonpersistent_flags+=("--output-version=")
flags+=("--show-all")
flags+=("-a")
local_nonpersistent_flags+=("--show-all")
flags+=("--show-labels")
local_nonpersistent_flags+=("--show-labels")
flags+=("--sort-by=")
local_nonpersistent_flags+=("--sort-by=")
flags+=("--template=")
flags_with_completion+=("--template")
flags_completion+=("_filedir")
local_nonpersistent_flags+=("--template=")
flags+=("--api-version=")
flags+=("--as=")
flags+=("--certificate-authority=")
Expand Down
36 changes: 36 additions & 0 deletions contrib/completions/bash/openshift
Original file line number Diff line number Diff line change
Expand Up @@ -1846,6 +1846,24 @@ _openshift_admin_groups_new()
flags_with_completion=()
flags_completion=()

flags+=("--no-headers")
local_nonpersistent_flags+=("--no-headers")
flags+=("--output=")
two_word_flags+=("-o")
local_nonpersistent_flags+=("--output=")
flags+=("--output-version=")
local_nonpersistent_flags+=("--output-version=")
flags+=("--show-all")
flags+=("-a")
local_nonpersistent_flags+=("--show-all")
flags+=("--show-labels")
local_nonpersistent_flags+=("--show-labels")
flags+=("--sort-by=")
local_nonpersistent_flags+=("--sort-by=")
flags+=("--template=")
flags_with_completion+=("--template")
flags_completion+=("_filedir")
local_nonpersistent_flags+=("--template=")
flags+=("--api-version=")
flags+=("--as=")
flags+=("--certificate-authority=")
Expand Down Expand Up @@ -6214,6 +6232,24 @@ _openshift_cli_adm_groups_new()
flags_with_completion=()
flags_completion=()

flags+=("--no-headers")
local_nonpersistent_flags+=("--no-headers")
flags+=("--output=")
two_word_flags+=("-o")
local_nonpersistent_flags+=("--output=")
flags+=("--output-version=")
local_nonpersistent_flags+=("--output-version=")
flags+=("--show-all")
flags+=("-a")
local_nonpersistent_flags+=("--show-all")
flags+=("--show-labels")
local_nonpersistent_flags+=("--show-labels")
flags+=("--sort-by=")
local_nonpersistent_flags+=("--sort-by=")
flags+=("--template=")
flags_with_completion+=("--template")
flags_completion+=("_filedir")
local_nonpersistent_flags+=("--template=")
flags+=("--api-version=")
flags+=("--as=")
flags+=("--certificate-authority=")
Expand Down
18 changes: 18 additions & 0 deletions contrib/completions/zsh/oadm
Original file line number Diff line number Diff line change
Expand Up @@ -2007,6 +2007,24 @@ _oadm_groups_new()
flags_with_completion=()
flags_completion=()
flags+=("--no-headers")
local_nonpersistent_flags+=("--no-headers")
flags+=("--output=")
two_word_flags+=("-o")
local_nonpersistent_flags+=("--output=")
flags+=("--output-version=")
local_nonpersistent_flags+=("--output-version=")
flags+=("--show-all")
flags+=("-a")
local_nonpersistent_flags+=("--show-all")
flags+=("--show-labels")
local_nonpersistent_flags+=("--show-labels")
flags+=("--sort-by=")
local_nonpersistent_flags+=("--sort-by=")
flags+=("--template=")
flags_with_completion+=("--template")
flags_completion+=("_filedir")
local_nonpersistent_flags+=("--template=")
flags+=("--api-version=")
flags+=("--as=")
flags+=("--certificate-authority=")
Expand Down
18 changes: 18 additions & 0 deletions contrib/completions/zsh/oc
Original file line number Diff line number Diff line change
Expand Up @@ -2103,6 +2103,24 @@ _oc_adm_groups_new()
flags_with_completion=()
flags_completion=()
flags+=("--no-headers")
local_nonpersistent_flags+=("--no-headers")
flags+=("--output=")
two_word_flags+=("-o")
local_nonpersistent_flags+=("--output=")
flags+=("--output-version=")
local_nonpersistent_flags+=("--output-version=")
flags+=("--show-all")
flags+=("-a")
local_nonpersistent_flags+=("--show-all")
flags+=("--show-labels")
local_nonpersistent_flags+=("--show-labels")
flags+=("--sort-by=")
local_nonpersistent_flags+=("--sort-by=")
flags+=("--template=")
flags_with_completion+=("--template")
flags_completion+=("_filedir")
local_nonpersistent_flags+=("--template=")
flags+=("--api-version=")
flags+=("--as=")
flags+=("--certificate-authority=")
Expand Down
36 changes: 36 additions & 0 deletions contrib/completions/zsh/openshift
Original file line number Diff line number Diff line change
Expand Up @@ -2007,6 +2007,24 @@ _openshift_admin_groups_new()
flags_with_completion=()
flags_completion=()

flags+=("--no-headers")
local_nonpersistent_flags+=("--no-headers")
flags+=("--output=")
two_word_flags+=("-o")
local_nonpersistent_flags+=("--output=")
flags+=("--output-version=")
local_nonpersistent_flags+=("--output-version=")
flags+=("--show-all")
flags+=("-a")
local_nonpersistent_flags+=("--show-all")
flags+=("--show-labels")
local_nonpersistent_flags+=("--show-labels")
flags+=("--sort-by=")
local_nonpersistent_flags+=("--sort-by=")
flags+=("--template=")
flags_with_completion+=("--template")
flags_completion+=("_filedir")
local_nonpersistent_flags+=("--template=")
flags+=("--api-version=")
flags+=("--as=")
flags+=("--certificate-authority=")
Expand Down Expand Up @@ -6375,6 +6393,24 @@ _openshift_cli_adm_groups_new()
flags_with_completion=()
flags_completion=()

flags+=("--no-headers")
local_nonpersistent_flags+=("--no-headers")
flags+=("--output=")
two_word_flags+=("-o")
local_nonpersistent_flags+=("--output=")
flags+=("--output-version=")
local_nonpersistent_flags+=("--output-version=")
flags+=("--show-all")
flags+=("-a")
local_nonpersistent_flags+=("--show-all")
flags+=("--show-labels")
local_nonpersistent_flags+=("--show-labels")
flags+=("--sort-by=")
local_nonpersistent_flags+=("--sort-by=")
flags+=("--template=")
flags_with_completion+=("--template")
flags_completion+=("_filedir")
local_nonpersistent_flags+=("--template=")
flags+=("--api-version=")
flags+=("--as=")
flags+=("--certificate-authority=")
Expand Down
3 changes: 3 additions & 0 deletions docs/generated/oadm_by_example_content.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ Create a new group
# Add a group with two users
oadm groups new my-group user1 user2
# Add a group with one user and shorter output
oadm groups new my-group user1 -o name
----
====

Expand Down
3 changes: 3 additions & 0 deletions docs/generated/oc_by_example_content.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ Create a new group
# Add a group with two users
oc adm groups new my-group user1 user2
# Add a group with one user and shorter output
oc adm groups new my-group user1 -o name
----
====

Expand Down
36 changes: 36 additions & 0 deletions docs/man/man1/oadm-groups-new.1
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,39 @@ Create a new group.
This command will create a new group with an optional list of users.


.SH OPTIONS
.PP
\fB\-\-no\-headers\fP=false
When using the default output, don't print headers.

.PP
\fB\-o\fP, \fB\-\-output\fP=""
Output format. One of: json|yaml|wide|name|go\-template=...|go\-template\-file=...|jsonpath=...|jsonpath\-file=... See golang template [
\[la]http://golang.org/pkg/text/template/#pkg-overview\[ra]] and jsonpath template [
\[la]http://releases.k8s.io/release-1.3/docs/user-guide/jsonpath.md\[ra]].

.PP
\fB\-\-output\-version\fP=""
Output the formatted object with the given group version (for ex: 'extensions/v1beta1').

.PP
\fB\-a\fP, \fB\-\-show\-all\fP=false
When printing, show all resources (default hide terminated pods.)

.PP
\fB\-\-show\-labels\fP=false
When printing, show all labels as the last column (default hide labels column)

.PP
\fB\-\-sort\-by\fP=""
If non\-empty, sort list types using this field specification. The field specification is expressed as a JSONPath expression (e.g. '{.metadata.name}'). The field in the API resource specified by this JSONPath expression must be an integer or a string.

.PP
\fB\-\-template\fP=""
Template string or path to template file to use when \-o=go\-template, \-o=go\-template\-file. The template format is golang templates [
\[la]http://golang.org/pkg/text/template/#pkg-overview\[ra]].


.SH OPTIONS INHERITED FROM PARENT COMMANDS
.PP
\fB\-\-api\-version\fP=""
Expand Down Expand Up @@ -96,6 +129,9 @@ This command will create a new group with an optional list of users.
# Add a group with two users
oadm groups new my\-group user1 user2

# Add a group with one user and shorter output
oadm groups new my\-group user1 \-o name

.fi
.RE

Expand Down
36 changes: 36 additions & 0 deletions docs/man/man1/oc-adm-groups-new.1
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,39 @@ Create a new group.
This command will create a new group with an optional list of users.


.SH OPTIONS
.PP
\fB\-\-no\-headers\fP=false
When using the default output, don't print headers.

.PP
\fB\-o\fP, \fB\-\-output\fP=""
Output format. One of: json|yaml|wide|name|go\-template=...|go\-template\-file=...|jsonpath=...|jsonpath\-file=... See golang template [
\[la]http://golang.org/pkg/text/template/#pkg-overview\[ra]] and jsonpath template [
\[la]http://releases.k8s.io/release-1.3/docs/user-guide/jsonpath.md\[ra]].

.PP
\fB\-\-output\-version\fP=""
Output the formatted object with the given group version (for ex: 'extensions/v1beta1').

.PP
\fB\-a\fP, \fB\-\-show\-all\fP=true
When printing, show all resources (false means hide terminated pods.)

.PP
\fB\-\-show\-labels\fP=false
When printing, show all labels as the last column (default hide labels column)

.PP
\fB\-\-sort\-by\fP=""
If non\-empty, sort list types using this field specification. The field specification is expressed as a JSONPath expression (e.g. '{.metadata.name}'). The field in the API resource specified by this JSONPath expression must be an integer or a string.

.PP
\fB\-\-template\fP=""
Template string or path to template file to use when \-o=go\-template, \-o=go\-template\-file. The template format is golang templates [
\[la]http://golang.org/pkg/text/template/#pkg-overview\[ra]].


.SH OPTIONS INHERITED FROM PARENT COMMANDS
.PP
\fB\-\-api\-version\fP=""
Expand Down Expand Up @@ -96,6 +129,9 @@ This command will create a new group with an optional list of users.
# Add a group with two users
oc adm groups new my\-group user1 user2

# Add a group with one user and shorter output
oc adm groups new my\-group user1 \-o name

.fi
.RE

Expand Down
36 changes: 36 additions & 0 deletions docs/man/man1/openshift-admin-groups-new.1
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,39 @@ Create a new group.
This command will create a new group with an optional list of users.


.SH OPTIONS
.PP
\fB\-\-no\-headers\fP=false
When using the default output, don't print headers.

.PP
\fB\-o\fP, \fB\-\-output\fP=""
Output format. One of: json|yaml|wide|name|go\-template=...|go\-template\-file=...|jsonpath=...|jsonpath\-file=... See golang template [
\[la]http://golang.org/pkg/text/template/#pkg-overview\[ra]] and jsonpath template [
\[la]http://releases.k8s.io/release-1.3/docs/user-guide/jsonpath.md\[ra]].

.PP
\fB\-\-output\-version\fP=""
Output the formatted object with the given group version (for ex: 'extensions/v1beta1').

.PP
\fB\-a\fP, \fB\-\-show\-all\fP=false
When printing, show all resources (default hide terminated pods.)

.PP
\fB\-\-show\-labels\fP=false
When printing, show all labels as the last column (default hide labels column)

.PP
\fB\-\-sort\-by\fP=""
If non\-empty, sort list types using this field specification. The field specification is expressed as a JSONPath expression (e.g. '{.metadata.name}'). The field in the API resource specified by this JSONPath expression must be an integer or a string.

.PP
\fB\-\-template\fP=""
Template string or path to template file to use when \-o=go\-template, \-o=go\-template\-file. The template format is golang templates [
\[la]http://golang.org/pkg/text/template/#pkg-overview\[ra]].


.SH OPTIONS INHERITED FROM PARENT COMMANDS
.PP
\fB\-\-api\-version\fP=""
Expand Down Expand Up @@ -96,6 +129,9 @@ This command will create a new group with an optional list of users.
# Add a group with two users
openshift admin groups new my\-group user1 user2

# Add a group with one user and shorter output
openshift admin groups new my\-group user1 \-o name

.fi
.RE

Expand Down
Loading

0 comments on commit 6023594

Please sign in to comment.