{"id":18445008,"url":"https://github.com/willdoescode/ctp","last_synced_at":"2025-10-29T18:03:59.644Z","repository":{"id":46220191,"uuid":"423617343","full_name":"willdoescode/ctp","owner":"willdoescode","description":"Create That Project. Project Creation That Rocks 🎸🧱.","archived":false,"fork":false,"pushed_at":"2024-08-13T16:03:52.000Z","size":171,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-31T12:09:29.436Z","etag":null,"topics":["project","rust","template"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willdoescode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-11-01T21:10:29.000Z","updated_at":"2024-08-13T16:03:56.000Z","dependencies_parsed_at":"2024-08-13T19:01:24.417Z","dependency_job_id":"a85c9cbf-f5b7-4041-8955-cd7a43c4c4ba","html_url":"https://github.com/willdoescode/ctp","commit_stats":{"total_commits":30,"total_committers":1,"mean_commits":30.0,"dds":0.0,"last_synced_commit":"bb3379091efbd5fb264b663c37edf06665f4882e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willdoescode%2Fctp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willdoescode%2Fctp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willdoescode%2Fctp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willdoescode%2Fctp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willdoescode","download_url":"https://codeload.github.com/willdoescode/ctp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223297239,"owners_count":17121977,"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":["project","rust","template"],"created_at":"2024-11-06T07:04:30.508Z","updated_at":"2025-10-29T18:03:59.510Z","avatar_url":"https://github.com/willdoescode.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create That Project\n\n![example workflow](https://github.com/willdoescode/ctp/actions/workflows/rust.yml/badge.svg)\n\n![example](./assets/e.png)\n\n[Config Example](./.ctp.example.toml)\n\n### Install\n\n```console\n$ cargo install ctp\n```\n\n### Basic Info\n\nIn any file or even in the commands sections of your config file you can place {{\\_\\_NAME\\_\\_}} and/or {{\\_\\_OUT\\_\\_}}. Both of these will be replaced by their corresponding definitions that you pass in, hence dynamic.\n\n{{\\_\\_NAME\\_\\_}} corresponds to the project name you passed into `ctp`\n\n{{\\_\\_OUT\\_\\_}} corresponds to the project output directory you passed into `ctp` (defaults to the project name)\n\nSee [here](https://github.com/willdoescode/ctp/blob/main/proj-example/main.c) for why this is useful.\n\n### Basic setup\n\nCreate `~/.ctp.toml` and populate with the following:\n\n```toml\n[templates]\n\n[commands-before]\n\n[commands-after]\n```\n\nNext, add the absolute path to a language template under `templates`\n\n```toml\n[templates]\nc = \"\u003cpath to c template\u003e\"\n```\n\nFinally, add whatever commands you would like to run like so:\n\n```toml\n[commands-before]\nc = [\"echo \\\"Creating project called {{_NAME__}} in directory {{__OUT__}}\\\"\"]\n\n[commands-after]\nc = [\"gcc -o {{__NAME__}} {{__NAME__}}.c\", \"./{{__NAME__}}\"]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilldoescode%2Fctp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilldoescode%2Fctp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilldoescode%2Fctp/lists"}