We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47f322d commit c1a9ca7Copy full SHA for c1a9ca7
1 file changed
internal/cmd/config/profile/delete/delete.go
@@ -71,14 +71,14 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
71
return err
72
}
73
74
- err = config.DeleteProfile(params.Printer, model.Profile)
+ err = auth.DeleteProfileAuth(model.Profile)
75
if err != nil {
76
- return fmt.Errorf("delete profile: %w", err)
+ return fmt.Errorf("delete profile authentication: %w", err)
77
78
79
- err = auth.DeleteProfileAuth(model.Profile)
+ err = config.DeleteProfile(params.Printer, model.Profile)
80
81
- return fmt.Errorf("delete profile authentication: %w", err)
+ return fmt.Errorf("delete profile: %w", err)
82
83
84
params.Printer.Info("Successfully deleted profile %q\n", model.Profile)
0 commit comments