Please excuse the uninvited PR, but I thought to share just in case someone else found this useful. Please let me know your thoughts on including, and ill be happy to adapt. 😄
I needed the format of the generated names to be slightly different. To allow this, I adapted your code to include functionality from Inflector0.11.4 which manifests itself as new Name enum types in addition to Name::Plain and Name::Numbered. Specifically:
TitleCase - Adjective Noun
CamelCase - adjectiveNoun
ClassCase - AdjectiveNoun
KebabCase - adjective-noun
TrainCase - Adjective-Noun
TableCase - adjective-noun
SnakeCase - adjective_noun
PascalCase - AdjectiveNoun
SentenceCase - Adjective noun
ScreamingSnakeCase - Adjective_Noun
Change Log
Added new functionality to src/lib.rs, new Name types
Updated CHANGELOG.md with notes on new naming strategy functionality
Added tests/lib.rs for naming strategy testing
Added and Updated READMD.md and README.tpl with notes on new functionality with examples.
Updated bin/names.rs to reflect breaking changes to Generator::new together with additional CLI -s/--strategy switch logic.
HI 👋,
Please excuse the uninvited PR, but I thought to share just in case someone else found this useful. Please let me know your thoughts on including, and ill be happy to adapt. 😄
I needed the format of the generated names to be slightly different. To allow this, I adapted your code to include functionality from Inflector
0.11.4
which manifests itself as newName
enum types in addition toName::Plain
andName::Numbered
. Specifically:Change Log
src/lib.rs
, newName
typesCHANGELOG.md
with notes on new naming strategy functionalitytests/lib.rs
for naming strategy testingREADMD.md
andREADME.tpl
with notes on new functionality with examples.bin/names.rs
to reflect breaking changes toGenerator::new
together with additional CLI-s
/--strategy
switch logic.1.10.4
[profile.release]
section toCargo.toml