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

Add --overwrite to stellar contract init #1425

Closed
fnando opened this issue Jul 2, 2024 · 1 comment · Fixed by #1477
Closed

Add --overwrite to stellar contract init #1425

fnando opened this issue Jul 2, 2024 · 1 comment · Fixed by #1477
Assignees

Comments

@fnando
Copy link
Member

fnando commented Jul 2, 2024

What problem does your feature solve?

Templates change. Maybe you want to pull in all new changes, especially when using astro templates.

What would you like to see?

--overwrite can overwrite all files automatically.

What alternatives are there?

Removing files manually then running the command to install a new version of the templates.

@leighmcculloch
Copy link
Member

This option would make the init command very destructive. The user already has tools they can use to destroy files, so the cli wouldn't be providing something significant impactful.

Also I expect a command for overwriting will be more useful to someone repeatedly starting from scratch which doesn't exactly sound like the workflow of a contract developer. It sounds like the workflow of someone testing the CLI.

What's the motivation behind adding the option?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants