Crates.io | mdmg |
lib.rs | mdmg |
version | 0.1.6 |
source | src |
created_at | 2021-10-19 18:35:30.894001 |
updated_at | 2024-03-16 06:51:08.587437 |
description | A scaffold prototype code tool |
homepage | |
repository | |
max_upload_size | |
id | 467465 |
size | 1,574,148 |
A scaffold prototype code tool.
cargo install mdmg
dpkg -i mdmg_[version]_amd64.deb
Use homebrew
brew install -s himanoa/tap/mdmg
mdmg setup
..mdmg/${plan_name}.md
.## src/main.rs
```rust
fn main() -> Result<()> {
unimplemented!()
}
```
mdmg generate ${plan_name} foo
.Please write in the following format.
## file_name
```
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