{"id":16933862,"url":"https://github.com/yah01/cynew","last_synced_at":"2025-07-16T12:43:03.191Z","repository":{"id":105206694,"uuid":"231823384","full_name":"yah01/cynew","owner":"yah01","description":"a tool for using scaffold for creating file/folder(project), customing scaffold","archived":false,"fork":false,"pushed_at":"2020-04-25T12:15:38.000Z","size":1461,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-04T05:57:23.471Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/yah01.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":"2020-01-04T20:22:39.000Z","updated_at":"2024-06-19T06:40:17.969Z","dependencies_parsed_at":null,"dependency_job_id":"12f2cc23-42b8-4579-8066-902e9d667921","html_url":"https://github.com/yah01/cynew","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yah01%2Fcynew","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yah01%2Fcynew/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yah01%2Fcynew/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yah01%2Fcynew/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yah01","download_url":"https://codeload.github.com/yah01/cynew/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248464188,"owners_count":21108238,"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-13T20:50:39.821Z","updated_at":"2025-04-11T18:51:08.357Z","avatar_url":"https://github.com/yah01.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cynew\n\n## Installation\nYou can install cynew by the way you prefer.\n\n### Release\n1. Download [cynew](https://github.com/yah01/cynew/releases)\n2. Add cynew into environment variable PATH\n```shell\nexport PATH=$PATH:[folder where you install cynew]\n```\n\n### Build\nYou need install [Golang](https://golang.org/) first\n1. Clone the repo\n```shell\ngo get github.com/yah01/cynew\n```\n2. Change directory to where cynew exists\n```shell\ncd $GOPATH/src/github.com/yah01/cynew\n```\n3. Run build command\n```shell\ngo build\n```\n4. There will be a executable file\n5. Add cynew into environment variable PATH\n```shell\nexport PATH=$PATH:[folder where you install cynew]\n```\n\n## Usage\n\n### simply create a empty file with name *hello.cpp*\n```shell\ncynew hello.cpp\n```\n\n### create more empty files with name *first.go*, *second.json*\n```shell\ncynew first.go second.json\n```\n\nExamples above are simple and nothing awesome, they can't show power of cynew. You may want to create a file/folder with some contents (what I call *template*), you can indicate a template when you create file/folder, cynew will write the contents what the template saving into the file/folder.\n\n### create file with template\nMaybe you are building a awesome project, and many source code file have some common contents (template my-template):\n```shell\ncynew awesome.go -t my-template\n```\nYou can create more than one file by just adding more file names\n\n### create folder with template\nMaybe you used scaffold what creates a folder with some contents (files,folders,... I would call also it template), cynew is a scaffold creator and builder!\n```\ncynew my-app -t my-awesome-project\n```\ncommand above will create a folder with name my-app, and fill it with contents what template my-awesome-project saving.\n\n### create template with existing file/folder\nNow you know how to create file/folder with template, but where is the template? You can create template with cynew easily\n```shell\ncynew -a hello.go\n```\nThis will create a template with content what hello.go has, then cynew will ask you to input a template name (if you input nothing, the template name is the file name). You can create a folder template by the same way.\n\n## flag\n\n- [-h]: show help information\n- [-ls]: list all template(s)\n- [-t *template*]: create file/folder with template\n- [-a *filename*]: add *filename* into templates (folder is OK)\n- [-d *template*]: delete template\n- [-i *template*]: show information of template","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyah01%2Fcynew","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyah01%2Fcynew","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyah01%2Fcynew/lists"}