{"id":21276448,"url":"https://github.com/lawrence-laz/init","last_synced_at":"2025-07-11T08:31:19.086Z","repository":{"id":246270654,"uuid":"820597147","full_name":"lawrence-laz/init","owner":"lawrence-laz","description":"A command line tool for initializing files and directories","archived":false,"fork":false,"pushed_at":"2024-07-28T12:35:02.000Z","size":43,"stargazers_count":13,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-28T13:57:54.642Z","etag":null,"topics":["cli","command-line","command-line-tool","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lawrence-laz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2024-06-26T19:46:29.000Z","updated_at":"2024-07-28T13:57:58.099Z","dependencies_parsed_at":"2024-07-28T13:57:55.170Z","dependency_job_id":null,"html_url":"https://github.com/lawrence-laz/init","commit_stats":null,"previous_names":["lawrence-laz/init"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lawrence-laz%2Finit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lawrence-laz%2Finit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lawrence-laz%2Finit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lawrence-laz%2Finit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lawrence-laz","download_url":"https://codeload.github.com/lawrence-laz/init/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225708254,"owners_count":17511634,"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","command-line","command-line-tool","zig"],"created_at":"2024-11-21T09:49:03.044Z","updated_at":"2024-11-21T09:49:03.761Z","avatar_url":"https://github.com/lawrence-laz.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"```html\n.__       .__  __   \n|__| ____ |__|/  |_ \n|  |/    \\|  \\   __\\\n|  |   |  \\  ||  |  \n|__|___|  /__||__|  \n        \\/          \n```\nCreate custom project templates with ease.\n\n## 📦 Install\n1. Build from source:\n![Zig v0.13](https://img.shields.io/badge/Zig-v0.13-orange?logo=zig)\n```sh\ngit clone --depth 1 https://github.com/lawrence-laz/init \u0026\u0026 cd init \u0026\u0026 zig build --release=safe\n```\n2. Add an alias to your shell config:\n```sh\nalias init=\"/path/to/init/zig-out/bin/init -c '/path/to/init/config/'\"\n```\n\n## 🔨 Create a template\n1. Create a directory for your new template:\n```sh\nmkdir -p config/templates/your-template-name\n```\n2. Create template sub-directory structure and files, for example:\n```\nconfig/templates/your-template-name\n|- src/\n|   |- main.zig\n|- build.zig\n|- build.zig.zon\n```\n\n## 🎉 Use\n```sh\nmkdir my-project \u0026\u0026 cd my-project\ninit your-template-name\n```\n\n## Parameters\nTemplates can have parameters, which are surrounded by three underscores (ex. `___name___`) in file contents, file and directory names.\nThen they can be used by calling `init` with `-p name=value`\n\nFor example running:\n```sh\ninit your-template-name -p name=my-project -p \"description=My very own project.\"\n```\nWould replace:\n - from `./your-template-name/dir-___name___/` to `./dir-my-project/`\n - from `./your-template-name/___name___.txt` to `./my-project.txt`\n - and contents of `some-file.txt` from `This project name is ___name___` to `This project name is my-project` \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flawrence-laz%2Finit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flawrence-laz%2Finit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flawrence-laz%2Finit/lists"}