diff --git a/cmd/auth/list.go b/cmd/auth/list.go index af9472ed45..592812a831 100644 --- a/cmd/auth/list.go +++ b/cmd/auth/list.go @@ -24,7 +24,6 @@ import ( ) var details bool -var userInput string var listCmd = &cobra.Command{ Use: "list", @@ -39,11 +38,6 @@ var listCmd = &cobra.Command{ os.Exit(1) } - if details { - fmt.Println("Show password ? (y/n)") - fmt.Scan(&userInput) - } - // Print the default if it is set fmt.Print(color.YellowString("Default: \n")) if configAI.DefaultProvider != "" { @@ -66,7 +60,7 @@ var listCmd = &cobra.Command{ if details { for _, provider := range configAI.Providers { if provider.Name == aiBackend { - printDetails(provider, userInput) + printDetails(provider) } } } @@ -91,7 +85,7 @@ func init() { listCmd.Flags().BoolVar(&details, "details", false, "Print active provider configuration details") } -func printDetails(provider ai.AIProvider, userInput string) { +func printDetails(provider ai.AIProvider) { if provider.Model != "" { fmt.Printf(" - Model: %s\n", provider.Model) }