{"id":15678002,"url":"https://github.com/himanoa/mdmg","last_synced_at":"2025-05-07T01:48:38.501Z","repository":{"id":37910666,"uuid":"393731042","full_name":"himanoa/mdmg","owner":"himanoa","description":"A Markdown based scaffold prototype code tool.","archived":false,"fork":false,"pushed_at":"2024-03-16T06:50:46.000Z","size":1227,"stargazers_count":13,"open_issues_count":3,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-06T06:14:52.519Z","etag":null,"topics":["cli","scaffold","scaffolding"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/himanoa.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"support/fs_template_repository_list_test/file1","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-07T16:11:31.000Z","updated_at":"2024-04-23T08:19:56.000Z","dependencies_parsed_at":"2024-03-15T13:50:20.313Z","dependency_job_id":"bb41ef23-72c9-4ec3-bcac-b910c2356cd0","html_url":"https://github.com/himanoa/mdmg","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himanoa%2Fmdmg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himanoa%2Fmdmg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himanoa%2Fmdmg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himanoa%2Fmdmg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/himanoa","download_url":"https://codeload.github.com/himanoa/mdmg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252798780,"owners_count":21805880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","scaffold","scaffolding"],"created_at":"2024-10-03T16:14:50.035Z","updated_at":"2025-05-07T01:48:38.435Z","avatar_url":"https://github.com/himanoa.png","language":"Rust","readme":"# Mdmg\n\n[![Coverage Status](https://coveralls.io/repos/github/himanoa/mdmg/badge.svg?branch=master)](https://coveralls.io/github/himanoa/mdmg?branch=master)\n\nA scaffold prototype code tool.\n\n![mdmg-demo](./assets/demo.gif)\n\n## Install\n\n```bash\ncargo install mdmg\n```\n\n### Debian\n\n1. Dowload a latest deb package from https://github.com/himanoa/mdmg/releases\n\n```\ndpkg -i mdmg_[version]_amd64.deb\n```\n\n### macOS\n\nUse homebrew\n\n```\nbrew install -s himanoa/tap/mdmg\n```\n## Features \n\n- Markdown driven\n  - Inspiration of [scaffdog](https://github.com/cats-oss/scaffdog).\n- Zero dependencies\n- Zero configuration\n- Don't use interactive shell.\n  - Easy to reuse from your script and text editor.\n\n## Usage\n\n1. Current Directory move to your project directory.\n2. Execute `mdmg setup`.\n3. Create a file similar to the following `.mdmg/${plan_name}.md`.\n\n~~~markdown\n## src/main.rs\n\n```rust\nfn main() -\u003e Result\u003c()\u003e {\n    unimplemented!()\n}\n```\n~~~\n\n4. Execute `mdmg generate ${plan_name} foo`.\n\n## Mdmg plan file format\n\nPlease write in the following format.\n\n~~~markdown\n## file_name\n\n```\nfile_body\n```\n~~~\n\nThe key points are as follows.\n\n- Write a filename in h2 tag\n- Write a file body in code block where the next line\n- ↑ is ok write multiple\n\n## Template Engine\n\nMdmg plan markdown can be use [handlebars](https://github.com/sunng87/handlebars-rust) template.\n\nFunctions and variables that can be used.\n\n### Supported variable\n\n- `identify` The third argument of mdmg generate command.\n  - Example. `mdmg generate foo bar` =\u003e bar\n\n### Supported functions\n\n- `pascal_case`\n  - Example\n    - identify: fooBarBaz\n    - template: `{{pascal_case identify}}`\n    - output: FooBarBaz\n- `camel_case`\n  - Example\n    - identify: FooBarBaz\n    - template: `{{camel_case identify}}`\n    - output: fooBarBaz\n- `kebab_case`\n  - Example\n    - identify: FooBarBaz\n    - template: `{{kebab_case identify}}`\n    - output: foo-bar-baz\n- `snake_case`\n  - Example\n    - identify: FooBarBaz\n    - template: `{{snake_case identify}}`\n    - output: foo\\_bar\\_baz\n- `env`:  \n  - Example\n    - environment: FOO=12\n    - template: `{{env \"FOO\"}}`\n    - output: 12\n\nImplementation =\u003e https://github.com/himanoa/mdmg/blob/master/src/template.rs\n\n## Contributing\n\nSee https://github.com/himanoa/mdmg/blob/master/CONTRIBUTING.md\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimanoa%2Fmdmg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhimanoa%2Fmdmg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimanoa%2Fmdmg/lists"}