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(docs): remove the docs command #267

Merged
merged 1 commit into from
Jan 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions docs/commands/rhoas.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Work with your Managed Services
=== Examples

....
$ rhas login
$ rhoas serviceaccount
$ rhoas login
$ rhoas serviceaccount list
$ rhoas kafka create
....

Expand All @@ -27,7 +27,6 @@ $ rhoas kafka create
OpenShift Cluster
* link:rhoas_completion.adoc[rhoas completion] - Generate completion
script
* link:rhoas_docs.adoc[rhoas docs] - Open documentation in browser
* link:rhoas_kafka.adoc[rhoas kafka] - Manage your Kafka instances
* link:rhoas_login.adoc[rhoas login] - Log in to RHOAS
* link:rhoas_logout.adoc[rhoas logout] - Logout from connected Managed
Expand Down
41 changes: 0 additions & 41 deletions pkg/cmd/docs/docs.go

This file was deleted.

7 changes: 3 additions & 4 deletions pkg/cmd/root/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package root

import (
"flag"

"github.com/MakeNowJust/heredoc"
"github.com/bf2fc6cc711aee1a0c2a/cli/pkg/arguments"
"github.com/bf2fc6cc711aee1a0c2a/cli/pkg/cmd/cluster"
"github.com/bf2fc6cc711aee1a0c2a/cli/pkg/cmd/completion"
"github.com/bf2fc6cc711aee1a0c2a/cli/pkg/cmd/docs"
"github.com/bf2fc6cc711aee1a0c2a/cli/pkg/cmd/factory"
"github.com/bf2fc6cc711aee1a0c2a/cli/pkg/cmd/kafka"
"github.com/bf2fc6cc711aee1a0c2a/cli/pkg/cmd/login"
Expand All @@ -25,8 +25,8 @@ func NewRootCommand(cmdFactory *factory.Factory, version string) *cobra.Command
Long: "Work with your Managed Services",

Example: heredoc.Doc(`
$ rhas login
$ rhoas serviceaccount
$ rhoas login
$ rhoas serviceaccount list
$ rhoas kafka create
`),
}
Expand All @@ -43,7 +43,6 @@ func NewRootCommand(cmdFactory *factory.Factory, version string) *cobra.Command
cmd.AddCommand(logout.NewLogoutCommand(cmdFactory))
cmd.AddCommand(kafka.NewKafkaCommand(cmdFactory))
cmd.AddCommand(serviceaccount.NewServiceAccountCommand(cmdFactory))
cmd.AddCommand(docs.NewDocsCommand())
cmd.AddCommand(cluster.NewClusterCommand(cmdFactory))
cmd.AddCommand(completion.CompletionCmd)

Expand Down