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(microservice): strip auto index suffixes from microservice filenames when parsing #387

Merged
merged 1 commit into from
Jun 9, 2024

Conversation

reubenmiller
Copy link
Owner

If the given microservice file ends with \s+(\d+)$, then it will be stripped when parsing the application name from the filename.

The (N) suffix is typically added by Operating Systems (or browers?) when downloading a file and the filename already exists in the target directory.

So the following will now work:

c8y microservices create --file ./cloud-http-proxy\ \(1\).zip

Where the application name will be parsed as cloud-http-proxy.

@reubenmiller reubenmiller linked an issue Jun 9, 2024 that may be closed by this pull request
@reubenmiller reubenmiller merged commit 0c8dd6e into v2 Jun 9, 2024
4 checks passed
@reubenmiller reubenmiller deleted the feat-microservice-name-parsing branch June 9, 2024 11:29
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

Successfully merging this pull request may close these issues.

Ignore filename suffixes when creating microservice from file
1 participant