File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package cmd
2+
3+ import "github.com/spf13/cobra"
4+
5+ var authCmd = & cobra.Command {
6+ Use : "auth" ,
7+ Short : "Manage authentication" ,
8+ }
9+
10+ func init () {
11+ rootCmd .AddCommand (authCmd )
12+ }
Original file line number Diff line number Diff line change 99 "github.com/spf13/cobra"
1010)
1111
12- var debugCmd = & cobra.Command {
13- Use : "debug " ,
12+ var statusCmd = & cobra.Command {
13+ Use : "status " ,
1414 Short : "Print the resolved configuration" ,
1515 RunE : func (cmd * cobra.Command , args []string ) error {
1616 cfg , err := config .Load ()
@@ -29,5 +29,5 @@ var debugCmd = &cobra.Command{
2929}
3030
3131func init () {
32- rootCmd .AddCommand (debugCmd )
32+ authCmd .AddCommand (statusCmd )
3333}
Original file line number Diff line number Diff line change @@ -43,5 +43,5 @@ var loginCmd = &cobra.Command{
4343}
4444
4545func init () {
46- rootCmd .AddCommand (loginCmd )
46+ authCmd .AddCommand (loginCmd )
4747}
Original file line number Diff line number Diff line change @@ -20,5 +20,5 @@ var logoutCmd = &cobra.Command{
2020}
2121
2222func init () {
23- rootCmd .AddCommand (logoutCmd )
23+ authCmd .AddCommand (logoutCmd )
2424}
You can’t perform that action at this time.
0 commit comments