{"id":18729482,"url":"https://github.com/dynonguyen/go-cli-utils","last_synced_at":"2025-04-12T16:53:03.270Z","repository":{"id":243473127,"uuid":"812508659","full_name":"dynonguyen/go-cli-utils","owner":"dynonguyen","description":"Some cli utilities are written in go.","archived":false,"fork":false,"pushed_at":"2024-07-07T15:17:34.000Z","size":14,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T11:21:14.866Z","etag":null,"topics":["cli","file","go","mkdir","safe-rm","touch"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dynonguyen.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":"2024-06-09T05:09:52.000Z","updated_at":"2025-03-16T14:04:36.000Z","dependencies_parsed_at":"2024-07-07T16:42:33.380Z","dependency_job_id":"1a147a75-351f-43b9-95ae-e809cb1ae8f9","html_url":"https://github.com/dynonguyen/go-cli-utils","commit_stats":null,"previous_names":["dynonguyen/new-cli","dynonguyen/go-cli-utils"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynonguyen%2Fgo-cli-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynonguyen%2Fgo-cli-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynonguyen%2Fgo-cli-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynonguyen%2Fgo-cli-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dynonguyen","download_url":"https://codeload.github.com/dynonguyen/go-cli-utils/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248601319,"owners_count":21131608,"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","file","go","mkdir","safe-rm","touch"],"created_at":"2024-11-07T14:27:20.134Z","updated_at":"2025-04-12T16:53:03.245Z","avatar_url":"https://github.com/dynonguyen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Logo](https://www.dropbox.com/scl/fi/3jf52ewmmzejc6cneum81/go-cli.jpeg?rlkey=54pm45ym5el4wxp228uyt46bn\u0026st=jyxmy80l\u0026raw=1)\n\n**Some cli utilities are written in go.**\n\n# New Cli\n\n`new` - Simplify the process of creating files or directories by combining the `mkdir` and `touch` commands.\n\n🥹 Using `mkdir` \u0026 `touch`\n\n```sh\n# Netesd folder\nmkdir -p folder/sub1/sub2\ntouch folder/sub1/sub2/file.go\n\n# File\ntouch file2.go\n\n# directory\nmkdir dir\nmkdir -p dir/sub1\n\n# Multiple files\nmkdir -p folder2\ncd folder2\ntouch file2.go file3.go file4.txt\n```\n\n☕ Using `new`\n\n```sh\n# Netesd folder\nnew folder/sub1/sub2/file.go\n\n# File\nnew file2.go\n\n# directory\nnew dir/\nnew dir/sub1/\n\n# Multiple files \u0026 directories\nnew folder2/[file2.go,file3.go,file4.txt]\n```\n\n### Installation\n\n```sh\ngo install github.com/dynonguyen/go-cli-utils/cmd/new@latest\n```\n\n### Usage\n\n```sh\n# Create file\nnew file.go\nnew file.go file2.go file3.js\n\n# Create directory (end with /)\nnew dir/\nnew dir/sub1/sub2/ dir2/\nnew \"dir/[sub1,sub2]/\" # Equivalent: new dir/sub1/ dir/sub2/\n\n# Create file in directory\nnew dir/sub1/file.go\nnew \"dir/sub1/[file.go,file2.go]\" # Equivalent: new dir/sub1/file1.go dir/sub2/file2.go\n\n# Space character (surrounded by double quotes)\nnew \"dir/orange cat/cat.go\"\n\n# Combination\nnew \"dir/[file.go,file2.go]\" dir/sub1/file.go file3.js\n```\n\n# Trash cli\n\n`trash` is a simple, fast, much safer replacement of bash `rm`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynonguyen%2Fgo-cli-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdynonguyen%2Fgo-cli-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynonguyen%2Fgo-cli-utils/lists"}