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

Shorten names of api functions #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Shorten names of api functions #4

wants to merge 1 commit into from

Conversation

rcannood
Copy link
Member

I get why the names are generated like this. This PR introduces a couple of replacements to make the names a bit shorter.

Copy link
Contributor

@lazappi lazappi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@@ -34,6 +34,9 @@ sed -i 's/\[\*\*AnyType\*\*\](AnyType\.md)/AnyType/g' docs/DefaultApi.md
sed -i 's/\\link{AnyType}/AnyType/g' R/default_api.R
sed -i 's#${module}.\${model}#module + "." + model#g' R/default_api.R

find . -type f -exec sed -i 's/\(InstancesInstanceId\|StoragesS3BucketNamePermissions\)[A-Za-z]*\(Get\|Post\|Put\|Delete\|Patch\)/\2/g' {} \;
find . -type f -exec sed -i 's/CreateInstance/CreateInstance/g' {} \;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line looks like it doesn't do anything, but maybe I'm missing something obvious?

Copy link
Member Author

@rcannood rcannood Nov 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, the first part should say something like CreateInstanceInstances

Suggested change
find . -type f -exec sed -i 's/CreateInstance/CreateInstance/g' {} \;
find . -type f -exec sed -i 's/CreateInstanceInstances/CreateInstance/g' {} \;

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.

2 participants