A scaffold prototype code tool.
bash
cargo install mdmg
mdmg setup
..mdmg/${plan_name}.md
.~~~markdown
rust
fn main() -> Result<()> {
unimplemented!()
}
~~~
mdmg generate ${plan_name} foo
.Please write in the following format.
~~~markdown
file_body
~~~
The key points are as follows.
Mdmg plan markdown can be use handlebars template.
Functions and variables that can be used.
identify
The third argument of mdmg generate command.
mdmg generate foo bar
=> barpascal_case
{{pascal_case identify}}
camel_case
{{camel_case identify}}
kebab_case
{{kebab_case identify}}
snake_case
{{snake_case identify}}
env
: {{env "FOO"}}
Implementation => https://github.com/himanoa/mdmg/blob/master/src/template.rs
See https://github.com/himanoa/mdmg/blob/master/CONTRIBUTING.md