{"id":15320215,"url":"https://github.com/alimy/cli","last_synced_at":"2025-08-22T20:18:10.431Z","repository":{"id":89528298,"uuid":"163283702","full_name":"alimy/cli","owner":"alimy","description":"Sample cli application code layout base on go module style.","archived":false,"fork":false,"pushed_at":"2018-12-27T12:01:24.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-16T17:41:53.531Z","etag":null,"topics":["go","sample"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alimy.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":"2018-12-27T10:56:44.000Z","updated_at":"2024-06-19T10:06:04.171Z","dependencies_parsed_at":null,"dependency_job_id":"d7c22e01-f439-4f3a-a65f-4d07a107c822","html_url":"https://github.com/alimy/cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alimy/cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alimy%2Fcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alimy%2Fcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alimy%2Fcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alimy%2Fcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alimy","download_url":"https://codeload.github.com/alimy/cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alimy%2Fcli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269833263,"owners_count":24482415,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["go","sample"],"created_at":"2024-10-01T09:07:56.384Z","updated_at":"2025-08-11T05:16:50.874Z","avatar_url":"https://github.com/alimy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Sample code layout for cli application use go module style\n\n### Usage\n```$bash\n$ git clone https://github.com/alimy/cli\n$ cd cli\n$ make\n\n$ ./cli\na sample cli application base on go module style\n\nUsage:\n  cli [command]\n\nAvailable Commands:\n  hello       sample sub-command for cli\n  help        Help about any command\n  version     version of application\n\nFlags:\n  -h, --help   help for cli\n\nUse \"cli [command] --help\" for more information about a command.\n$ ./cli version\n0.0.0 (APIVersion:v1alphal)\nBuildTime:2018-12-27 11:58:13 UTC\nBuildGitSHA:6f61a2376753e270b943d5ab63eaeb85357b8486\n\n$ ./cli hello\n2018-12-27T20:00:06.390+0800    INFO    hello@v0.0.0-20181227113021-4b91de8a165a/hello.go:6     hello world!\n```\n\n### Custom your code base this repository\n\n* change module name and others\n* add sub-module in module directory\n* import sub-module in main.go to register sub-command\n* and so on...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falimy%2Fcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falimy%2Fcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falimy%2Fcli/lists"}