Skip to content

Commit

Permalink
Add beta feature warning
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-debricked committed Sep 19, 2024
1 parent d6a68c1 commit 7494f6c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/cmd/auth/auth.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package auth

import (
"log"

"github.com/debricked/cli/internal/auth"
"github.com/debricked/cli/internal/cmd/auth/login"
"github.com/debricked/cli/internal/cmd/auth/logout"
Expand All @@ -12,12 +14,13 @@ import (
func NewAuthCmd(authenticator auth.IAuthenticator) *cobra.Command {
cmd := &cobra.Command{
Use: "auth",
Short: "Debricked authentication.",
Long: `Debricked service authentication.`,
Short: "Debricked authentication. [beta feature]",
Long: `Debricked service authentication. Currently in beta and will most likely not work as expected`,
PreRun: func(cmd *cobra.Command, _ []string) {
_ = viper.BindPFlags(cmd.Flags())
},
}
log.Println("Warning: Authentication is beta and may not work as expected.")
cmd.AddCommand(login.NewLoginCmd(authenticator))
cmd.AddCommand(logout.NewLogoutCmd(authenticator))
cmd.AddCommand(token.NewTokenCmd(authenticator))
Expand Down

0 comments on commit 7494f6c

Please sign in to comment.