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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(case): project names are kebabs #64
Conversation
fdc6849
to
a2320b5
Compare
87ddfe5
to
3bfc5ee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Great to see this test, too :)
src/projectname.rs
Outdated
|
||
pub struct ProjectName { | ||
pub kebab_case: String, | ||
pub snake_case: String, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd only store the raw input name (as a private field) and make these getters but it doesn't really matter right now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eh i can do this now
src/projectname.rs
Outdated
@@ -0,0 +1,15 @@ | |||
use heck::{KebabCase, SnakeCase}; | |||
|
|||
pub struct ProjectName { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a comment to describe the pupose
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to merge once CI is green
馃懢 do no merge 馃懢
fixes #63 and adds tests for:
--name
is passed to generate it should be kebab'd