Skip to content

Commit f37462a

Browse files
authored
Merge pull request #6 from fosrl/dev
0.2.0
2 parents 0346b6b + 91716d5 commit f37462a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+2351
-1826
lines changed

cmd/auth/auth.go

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@ import (
77
"github.com/spf13/cobra"
88
)
99

10-
var AuthCmd = &cobra.Command{
11-
Use: "auth",
12-
Short: "Authentication commands",
13-
Long: "Manage authentication and sessions",
14-
}
10+
func AuthCommand() *cobra.Command {
11+
cmd := &cobra.Command{
12+
Use: "auth",
13+
Short: "Authentication commands",
14+
Long: "Manage authentication and sessions",
15+
}
16+
17+
cmd.AddCommand(login.LoginCmd())
18+
cmd.AddCommand(logout.LogoutCmd())
19+
cmd.AddCommand(status.StatusCmd())
1520

16-
func init() {
17-
AuthCmd.AddCommand(login.LoginCmd)
18-
AuthCmd.AddCommand(logout.LogoutCmd)
19-
AuthCmd.AddCommand(status.StatusCmd)
21+
return cmd
2022
}

0 commit comments

Comments
 (0)