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

Make default directory name separate CamelCase with dashes #5

Open
sschuberth opened this issue Dec 29, 2020 · 0 comments
Open

Make default directory name separate CamelCase with dashes #5

sschuberth opened this issue Dec 29, 2020 · 0 comments

Comments

@sschuberth
Copy link

Just as minor idea for improving the default directory name created at

dest_dir = os.path.join(dest_dir, "keypirinha-" + package_name.lower())

How about converting CamelCase to dash-separations, so that

kptmpl package FooBar

would create a directory "keypirinha-foo-bar" instead of "keypirinha-foobar"? That could be done with a Regex replacement similar to this Kotlin code that I wrote.

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

No branches or pull requests

1 participant