Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/cmd/context/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func runDelete(s state.State, _ *cobra.Command, args []string) error {
return fmt.Errorf("context not found: %v", name)
}
if cfg.ActiveContext() == context {
_, _ = fmt.Fprintln(os.Stderr, "Warning: You are deleting the currently active context. Please select a new active context.")
_, _ = fmt.Fprintln(os.Stderr, "Warning: You deleted the currently active context. Please select a new active context.")
cfg.SetActiveContext(nil)
}
config.RemoveContext(cfg, context)
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/context/delete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ token = "super secret token"
name: "delete active context",
args: []string{"my-context"},
config: testConfig,
expErr: "Warning: You are deleting the currently active context. Please select a new active context.\n",
expErr: "Warning: You deleted the currently active context. Please select a new active context.\n",
expOut: `active_context = ""

[[contexts]]
Expand Down
Loading