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" option to plugin #151

Open
pshriwise opened this issue Sep 7, 2023 · 3 comments
Open

Add "overwrite" option to plugin #151

pshriwise opened this issue Sep 7, 2023 · 3 comments

Comments

@pshriwise
Copy link
Member

We don't currently provide a check that the file we're trying to create already exists. For other Cubit commands that create/export a file, an "overwrite" option is provided to clarify that the file should be replaced if the specified filename is already present.

@MicahGale
Copy link

If a file conflict is found what's the preferred behavior? Termination with an error? Appending a suffix?

@pshriwise
Copy link
Member Author

I believe the convention is termination with an error as soon as possible, to follow your sentiments in #150.

@gonuke
Copy link
Member

gonuke commented Sep 9, 2023

It is definitely the Cubit convention to only overwrite when forced with the overwrite keyword, and to fail with an error otherwise. The command terminates, but the in an interactive session , the application doesn't terminate.

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

3 participants