Skip to content

Commit d410aed

Browse files
authored
feat: new connector commands are now not hidden (#1726)
1 parent 1d7cac9 commit d410aed

File tree

11 files changed

+190
-6
lines changed

11 files changed

+190
-6
lines changed

docs/commands/rhoas_connector.md

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/commands/rhoas_connector_build.md

Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/commands/rhoas_connector_create.md

Lines changed: 42 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/commands/rhoas_connector_describe.md

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/commands/rhoas_connector_update.md

Lines changed: 53 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/cmd/connector/build/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func NewBuildCommand(f *factory.Factory) *cobra.Command {
4242
Short: f.Localizer.MustLocalize("connector.build.cmd.shortDescription"),
4343
Long: f.Localizer.MustLocalize("connector.build.cmd.longDescription"),
4444
Example: f.Localizer.MustLocalize("connector.build.cmd.example"),
45-
Hidden: true,
45+
Hidden: false,
4646
Args: cobra.NoArgs,
4747
RunE: func(cmd *cobra.Command, args []string) error {
4848
validOutputFormats := flagutil.ValidOutputFormats

pkg/cmd/connector/connector.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ func NewConnectorsCommand(f *factory.Factory) *cobra.Command {
4040
stop.NewStopCommand(f),
4141
connector_type.NewTypeCommand(f),
4242
list.NewListCommand(f),
43-
44-
// Hidden for the users and docs at the moment
4543
create.NewCreateCommand(f),
4644
build.NewBuildCommand(f),
4745
delete.NewDeleteCommand(f),

pkg/cmd/connector/create/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func NewCreateCommand(f *factory.Factory) *cobra.Command {
5252
Short: f.Localizer.MustLocalize("connector.create.cmd.shortDescription"),
5353
Long: f.Localizer.MustLocalize("connector.create.cmd.longDescription"),
5454
Example: f.Localizer.MustLocalize("connector.create.cmd.example"),
55-
Hidden: true,
55+
Hidden: false,
5656
Args: cobra.NoArgs,
5757
RunE: func(cmd *cobra.Command, args []string) error {
5858
validOutputFormats := flagutil.ValidOutputFormats

pkg/cmd/connector/delete/delete.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ func NewDeleteCommand(f *factory.Factory) *cobra.Command {
3636
Short: f.Localizer.MustLocalize("connector.delete.cmd.shortDescription"),
3737
Long: f.Localizer.MustLocalize("connector.delete.cmd.longDescription"),
3838
Example: f.Localizer.MustLocalize("connector.delete.cmd.example"),
39+
Hidden: false,
3940
Args: cobra.NoArgs,
4041
RunE: func(cmd *cobra.Command, args []string) error {
4142
validOutputFormats := flagutil.ValidOutputFormats

pkg/cmd/connector/describe/describe.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func NewDescribeCommand(f *factory.Factory) *cobra.Command {
3030
Long: f.Localizer.MustLocalize("connector.describe.cmd.longDescription"),
3131
Example: f.Localizer.MustLocalize("connector.describe.cmd.example"),
3232
Args: cobra.NoArgs,
33-
Hidden: true,
33+
Hidden: false,
3434
RunE: func(cmd *cobra.Command, args []string) error {
3535

3636
validOutputFormats := flagutil.ValidOutputFormats

0 commit comments

Comments
 (0)