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

Support overwriting #87

Closed
thaindq opened this issue Oct 5, 2023 · 4 comments
Closed

Support overwriting #87

thaindq opened this issue Oct 5, 2023 · 4 comments

Comments

@thaindq
Copy link

thaindq commented Oct 5, 2023

🚀 Feature Proposal

Please support overwrite using cli, just like copy-version

Motivation

Because it's faster and there is no modification cost

COPY TO is slower than OVERWRITE.
The changes cause modification costs.

Example

locize overwrite latest --api-key my-api-key-d9de-4f55-9855-a9ef0ed44672 --project-id my-project-id-93e1-442a-ab35-24331fa294ba --ver production

or

locize copy-version --overwrite latest --api-key my-api-key-d9de-4f55-9855-a9ef0ed44672 --project-id my-project-id-93e1-442a-ab35-24331fa294ba --ver production
@adrai
Copy link
Collaborator

adrai commented Oct 6, 2023

The CLI uses this API endpoint: https://docs.locize.com/integration/api#copy-version
And it's the same behavior like Overwriting via the UI.

@thaindq
Copy link
Author

thaindq commented Oct 6, 2023

So you mean if I run
locize copy-version latest --ver production
It would be the same thing as using Overwrite Version (latest -> production) from the UI and would not cause modification costs?

@adrai
Copy link
Collaborator

adrai commented Oct 6, 2023

yes

@adrai adrai closed this as completed Oct 6, 2023
@thaindq
Copy link
Author

thaindq commented Oct 6, 2023

Ok thank you for clarifying. I think you should improve the wording or update the cli docs to make it less confusing.

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

2 participants