Skip to content

Commit

Permalink
Merge pull request #10338 from juanvallejo/jvallejo_bugfix-remove-red…
Browse files Browse the repository at this point in the history
…undant-example-oc-projects

Merged by openshift-bot
  • Loading branch information
OpenShift Bot authored Aug 10, 2016
2 parents 9422ed6 + 55a0a2f commit 255d523
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 44 deletions.
13 changes: 0 additions & 13 deletions docs/generated/oc_by_example_content.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1909,19 +1909,6 @@ Switch to another project
====


== oc projects
Display existing projects

====
[options="nowrap"]
----
# Display the projects that currently exist
oc
----
====


== oc proxy
Run a proxy to the Kubernetes API server

Expand Down
12 changes: 0 additions & 12 deletions docs/man/man1/oc-projects.1
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,6 @@ command.
The name of the kubeconfig user to use


.SH EXAMPLE
.PP
.RS

.nf
# Display the projects that currently exist
oc

.fi
.RE


.SH SEE ALSO
.PP
\fBoc(1)\fP,
Expand Down
12 changes: 0 additions & 12 deletions docs/man/man1/openshift-cli-projects.1
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,6 @@ command.
The name of the kubeconfig user to use


.SH EXAMPLE
.PP
.RS

.nf
# Display the projects that currently exist
openshift cli

.fi
.RE


.SH SEE ALSO
.PP
\fBopenshift\-cli(1)\fP,
Expand Down
10 changes: 3 additions & 7 deletions pkg/cmd/cli/cmd/projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,16 @@ Display information about the current active project and existing projects on th
For advanced configuration, or to manage the contents of your config file, use the 'config'
command.`

projectsExample = ` # Display the projects that currently exist
%[1]s`
)

// NewCmdProjects implements the OpenShift cli rollback command
func NewCmdProjects(fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command {
options := &ProjectsOptions{}

cmd := &cobra.Command{
Use: "projects",
Short: "Display existing projects",
Long: projectsLong,
Example: fmt.Sprintf(projectsExample, fullName),
Use: "projects",
Short: "Display existing projects",
Long: projectsLong,
Run: func(cmd *cobra.Command, args []string) {
options.PathOptions = cliconfig.NewPathOptions(cmd)

Expand Down

0 comments on commit 255d523

Please sign in to comment.