{"id":16406781,"url":"https://github.com/terror/skeleton","last_synced_at":"2025-03-23T05:31:22.167Z","repository":{"id":164532106,"uuid":"639711715","full_name":"terror/skeleton","owner":"terror","description":"💀 A project scaffolding utility","archived":false,"fork":false,"pushed_at":"2024-07-21T18:11:34.000Z","size":112,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-14T22:03:20.572Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/terror.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-12T04:01:36.000Z","updated_at":"2024-07-21T18:11:37.000Z","dependencies_parsed_at":"2024-06-08T17:58:10.174Z","dependency_job_id":"0a2626c4-fc11-4a70-acf0-87ab0982593f","html_url":"https://github.com/terror/skeleton","commit_stats":null,"previous_names":["terror/skeleton"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terror%2Fskeleton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terror%2Fskeleton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terror%2Fskeleton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terror%2Fskeleton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terror","download_url":"https://codeload.github.com/terror/skeleton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245061382,"owners_count":20554563,"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":[],"created_at":"2024-10-11T06:10:57.161Z","updated_at":"2025-03-23T05:31:21.839Z","avatar_url":"https://github.com/terror.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## skeleton 💀\n\n[![CI](https://github.com/terror/skeleton/actions/workflows/ci.yml/badge.svg)](https://github.com/terror/skeleton/actions/workflows/ci.yml)\n[![crates.io](https://shields.io/crates/v/skeleton-cli.svg)](https://crates.io/crates/skeleton-cli)\n\n**skeleton** is a tool that makes it easier to start new projects.\n\nIt stores your commonly used project specific files in one place, letting you\neasily apply them to new projects.\n\nIn essence, a **template** is a file ending in `.skeleton` with a front-matter and\ncontent. The front-matter is structured\n[YAML](https://en.wikipedia.org/wiki/YAML?useskin=vector) with effect and free\nvariables.\n\nAn **effect** variable is pre-defined to perform some action. As of now, there are\nonly 3 pre-defined variables of this type:\n\n| Name         | Type       | Required | Description                                                                           |\n|--------------|------------|----------|---------------------------------------------------------------------------------------|\n| `command`    | String     | No       | A command to run on a template post-write.                                            |\n| `filename`   | String     | Yes      | Specifies the name of the templates destination location during application.          |\n| `groups`     | Sequence   | No       | Groups this template belongs to, used commonly when batch applying templates.         |\n\nSee [subcommand.rs](https://github.com/terror/skeleton/blob/master/src/subcommand.rs)\nfor further elaboration on these effect variables.\n\nA **free** variable is used to substitute into the templates content, you can also\nspecify whether or not to be interactively prompted for these types of variables\nwhen applying templates.\n\nThese types of variables follow a special kind of syntax when used within\ntemplates, for instance:\n\n```\n---\nfilename: rustfmt.toml\ngroups: [rust-cli]\ntab_spaces: 2\n---\nedition = \"2018\"\nmax_width = 80\nnewline_style = \"Unix\"\ntab_spaces = {% tab_spaces %}\nuse_field_init_shorthand = true\nuse_try_shorthand = true\n```\n\nNote that `{% tab_spaces %}` will replace to `2` when applying this template.\n\nThe binary is called `sk` and has only been tested on a Unix-based machine.\n\n### Demo\n\n[![asciicast](https://asciinema.org/a/rx0tWWfPTPZNXoBboE7dzX3tX.svg)](https://asciinema.org/a/rx0tWWfPTPZNXoBboE7dzX3tX)\n\n### Installation\n\nYou can install the **skeleton** command-line utility via the rust package manager\n[cargo](https://doc.rust-lang.org/cargo/):\n\n```bash\ncargo install skeleton-cli\n```\n\n...or you can build it from source:\n\n```bash\ngit clone https://github.com/terror/skeleton\ncd skeleton\ncargo install --path .\n```\n\n### Usage\n\n```present cargo run -- --help\nUsage: sk \u003cCOMMAND\u003e\n\nCommands:\n  add     Add a new template\n  apply   Apply a template\n  edit    Edit an existing template\n  list    List all templates\n  remove  Remove an existing template\n  help    Print this message or the help of the given subcommand(s)\n\nOptions:\n  -h, --help  Print help\n```\n\n### Prior Art\n\n**skeleton** is a re-implementation and improvement of the Python program I wrote a while\nback called **bp**, which you can find [here](https://github.com/terror/bp).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterror%2Fskeleton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterror%2Fskeleton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterror%2Fskeleton/lists"}