Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add remove context command #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mflagey
Copy link
Member

@mflagey mflagey commented Apr 25, 2023

No description provided.

@mflagey mflagey added minor enhancement New feature or request labels Apr 25, 2023
@mflagey mflagey force-pushed the 60-feat-remove-context-command branch from b7b5cc4 to 1ecc135 Compare April 25, 2023 09:31
Comment on lines +92 to +94
if name == "localhost" {
return ErrRemoveDefaultContext
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why block the remove of the default context ? For me every context can be deleted. It does not make sense to block just this one.

Also, please ensure that there is no error if a user removes all the contexts. In that case, the default context should be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants