From 7494f6c7ee0cadd6b42f358b05397d13677c34cf Mon Sep 17 00:00:00 2001 From: filip Date: Wed, 18 Sep 2024 15:06:30 +0200 Subject: [PATCH] Add beta feature warning --- internal/cmd/auth/auth.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/internal/cmd/auth/auth.go b/internal/cmd/auth/auth.go index 6dea5f34..8953ddf4 100644 --- a/internal/cmd/auth/auth.go +++ b/internal/cmd/auth/auth.go @@ -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" @@ -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))