Skip to content

Commit af1f5ee

Browse files
committed
Add gitops set config and gitops get config commands from core.
1 parent 09f6b4c commit af1f5ee

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

cmd/gitops/app/get/cmd.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"github.com/weaveworks/weave-gitops-enterprise/cmd/gitops/pkg/adapters"
1212
"github.com/weaveworks/weave-gitops/cmd/gitops/config"
1313
"github.com/weaveworks/weave-gitops/cmd/gitops/get/bcrypt"
14+
configCmd "github.com/weaveworks/weave-gitops/cmd/gitops/get/config"
1415
)
1516

1617
func Command(opts *config.Options, client *adapters.HTTPClient) *cobra.Command {
@@ -37,6 +38,7 @@ gitops get clusters`,
3738
cmd.AddCommand(clusters.GetCommand(opts, client))
3839
cmd.AddCommand(profiles.GetCommand(opts, client))
3940
cmd.AddCommand(bcrypt.HashCommand(opts))
41+
cmd.AddCommand(configCmd.ConfigCommand(opts))
4042

4143
return cmd
4244
}

cmd/gitops/app/root/cmd.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919
"github.com/weaveworks/weave-gitops/cmd/gitops/check"
2020
"github.com/weaveworks/weave-gitops/cmd/gitops/config"
2121
"github.com/weaveworks/weave-gitops/cmd/gitops/docs"
22+
"github.com/weaveworks/weave-gitops/cmd/gitops/set"
2223
"github.com/weaveworks/weave-gitops/cmd/gitops/version"
2324
"github.com/weaveworks/weave-gitops/pkg/kube"
2425
"github.com/weaveworks/weave-gitops/pkg/utils"
@@ -113,6 +114,7 @@ func Command(client *adapters.HTTPClient) *cobra.Command {
113114
rootCmd.AddCommand(docs.Cmd)
114115
rootCmd.AddCommand(check.Cmd)
115116
rootCmd.AddCommand(beta.GetCommand(options))
117+
rootCmd.AddCommand(set.SetCommand(options))
116118

117119
return rootCmd
118120
}

0 commit comments

Comments
 (0)