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

Check if instance exists before offering to edit a template for a new instance #1370

Open
jandubois opened this issue Feb 15, 2023 · 0 comments

Comments

@jandubois
Copy link
Member

Right now limactl start offers you to edit the template before starting the instance. But when it comes time to instantiate it, it finds that an instance with the same name already exists and throws away the edited template.

It would be more considerate to abort creation before letting the user edit the template:

$ l start template://alpine
? Creating an instance "alpine" Open an editor to review or modify the current configuration
Waiting for Emacs...
FATA[0014] instance "alpine" already exists ("/Users/jan/.lima/alpine")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant