{"id":21296925,"url":"https://github.com/reddec/mkproj","last_synced_at":"2026-05-22T14:11:59.353Z","repository":{"id":81702563,"uuid":"82284303","full_name":"reddec/mkproj","owner":"reddec","description":null,"archived":false,"fork":false,"pushed_at":"2017-02-27T07:17:02.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-09T00:06:39.143Z","etag":null,"topics":["bash-script","template-project"],"latest_commit_sha":null,"homepage":"https://reddec.gitbooks.io/mkproj/content/","language":"Shell","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/reddec.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":"2017-02-17T10:09:13.000Z","updated_at":"2017-09-24T13:32:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"9d0e403a-9245-4da4-8162-15e7b50d9168","html_url":"https://github.com/reddec/mkproj","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddec%2Fmkproj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddec%2Fmkproj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddec%2Fmkproj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddec%2Fmkproj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reddec","download_url":"https://codeload.github.com/reddec/mkproj/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243765015,"owners_count":20344520,"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":["bash-script","template-project"],"created_at":"2024-11-21T14:31:00.781Z","updated_at":"2026-05-22T14:11:54.328Z","avatar_url":"https://github.com/reddec.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Operate templates for projects\n\nPlease see documentation https://reddec.gitbooks.io/mkproj/content/\n\n## Usage\n\n\n```\nOperate directory templates\ncommands:\n    ls                                       List available templates\n    content  \u003ctemplate_name\u003e                 Print content of template\n    rm       [template_name...]              Remove template\n    export   \u003ctemplate_name\u003e                 Export content of template to current dir\n    init     \u003ctemplate_name...\u003e              Initialize directory and apply templates\n    save     [template_name]                 Save current directory as template\n    backup   \u003carchive name\u003e                  Compress all templates to tar.gz\n    restore  \u003carchive name\u003e                  Unpack all templates from tar.gz\n    pull                                     Pull templates from remote repo\n    push                                     Push templates to remote repo\n    help                                     Show help\n    install                                  Install script to /usr/bin/mkproj\n```\n\n\n## How to create template\n\n\n1. Create a directory `mkdir template_name`\n2. Put some files\n3. Save template by `mkproj save`\n\n\n## Special files\n\n\n`post-init` - executable script (+x) that runs after apply template\n\n`TARGET_FILE.template` - template that will processed by `envsubst`\n\n`TARGET_FILE.cgi`  - script, that output will save instead of it (aka CGI in web)\n\n\n## How to use template\n\n1. Run `mkproj ls` and remember template name\n2. Run `mkproj init TEMPLATE_NAME` and be happy\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freddec%2Fmkproj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freddec%2Fmkproj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freddec%2Fmkproj/lists"}