Skip to content

Commit 3eb6802

Browse files
Remove beta warnings (#296)
* feature-b(#7155): Removed beta auth message * feature-b(#7155): Removed hidden setup Signed-off-by: Biswajit Patra <[email protected]> --------- Signed-off-by: Biswajit Patra <[email protected]>
1 parent b08c720 commit 3eb6802

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

internal/cmd/auth/auth.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ import (
1212
func NewAuthCmd(authenticator auth.IAuthenticator) *cobra.Command {
1313
cmd := &cobra.Command{
1414
Use: "auth",
15-
Short: "Debricked authentication. [beta feature]",
15+
Short: "Debricked authentication.",
1616
Long: `Debricked service authentication. Currently in beta and will most likely not work as expected`,
1717
PreRun: func(cmd *cobra.Command, _ []string) {
1818
_ = viper.BindPFlags(cmd.Flags())
1919
},
20-
Hidden: true,
2120
}
2221
cmd.AddCommand(login.NewLoginCmd(authenticator))
2322
cmd.AddCommand(logout.NewLogoutCmd(authenticator))

internal/cmd/auth/login/login.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ func NewLoginCmd(authenticator auth.IAuthenticator) *cobra.Command {
2525

2626
func RunE(a auth.IAuthenticator) func(_ *cobra.Command, args []string) error {
2727
return func(cmd *cobra.Command, _ []string) error {
28-
fmt.Println("Warning: auth is beta and may not work as expected.")
2928
err := a.Authenticate()
3029
if err != nil {
3130
return err

internal/cmd/auth/logout/logout.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ func NewLogoutCmd(authenticator auth.IAuthenticator) *cobra.Command {
2525

2626
func RunE(a auth.IAuthenticator) func(_ *cobra.Command, args []string) error {
2727
return func(cmd *cobra.Command, _ []string) error {
28-
fmt.Println("Warning: auth is beta and may not work as expected.")
2928
err := a.Logout()
3029
if err != nil {
3130
return err

internal/cmd/auth/token/token.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ Format:
4141

4242
func RunE(a auth.IAuthenticator) func(_ *cobra.Command, args []string) error {
4343
return func(cmd *cobra.Command, _ []string) error {
44-
fmt.Println("Warning: auth is beta and may not work as expected.")
4544
token, err := a.Token()
4645
if err != nil {
4746
return err

0 commit comments

Comments
 (0)