Skip to content
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
12 changes: 12 additions & 0 deletions cmd/auth.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package cmd

import "github.com/spf13/cobra"

var authCmd = &cobra.Command{
Use: "auth",
Short: "Manage authentication",
}

func init() {
rootCmd.AddCommand(authCmd)
}
6 changes: 3 additions & 3 deletions cmd/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/spf13/cobra"
)

var debugCmd = &cobra.Command{
Use: "debug",
var statusCmd = &cobra.Command{
Use: "status",
Short: "Print the resolved configuration",
RunE: func(cmd *cobra.Command, args []string) error {
cfg, err := config.Load()
Expand All @@ -29,5 +29,5 @@ var debugCmd = &cobra.Command{
}

func init() {
rootCmd.AddCommand(debugCmd)
authCmd.AddCommand(statusCmd)
}
2 changes: 1 addition & 1 deletion cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ var loginCmd = &cobra.Command{
}

func init() {
rootCmd.AddCommand(loginCmd)
authCmd.AddCommand(loginCmd)
}
2 changes: 1 addition & 1 deletion cmd/logout.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ var logoutCmd = &cobra.Command{
}

func init() {
rootCmd.AddCommand(logoutCmd)
authCmd.AddCommand(logoutCmd)
}
Loading