Skip to content

Make default directory name separate CamelCase with dashes #5

@sschuberth

Description

@sschuberth

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions