{"id":15034319,"url":"https://github.com/emmanuelgautier/go-cli-template","last_synced_at":"2026-01-19T04:02:47.234Z","repository":{"id":220971926,"uuid":"695848287","full_name":"emmanuelgautier/go-cli-template","owner":"emmanuelgautier","description":"a simple Go CLI (Command Line Interface) template that you can use as a starting point for building your own command-line applications in Go.","archived":false,"fork":false,"pushed_at":"2025-12-05T21:21:54.000Z","size":45,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-09T11:07:03.890Z","etag":null,"topics":["cli","cli-template","golang","golang-examples","golang-template","template","template-project"],"latest_commit_sha":null,"homepage":"https://github.com/emmanuelgautier/go-cli-template","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/emmanuelgautier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["emmanuelgautier"],"buy_me_a_coffee":"emmanuelgautier"}},"created_at":"2023-09-24T12:19:43.000Z","updated_at":"2025-12-05T21:20:50.000Z","dependencies_parsed_at":"2024-09-10T14:49:46.138Z","dependency_job_id":"837c740d-436d-419c-b0ad-d1660f8ef0b4","html_url":"https://github.com/emmanuelgautier/go-cli-template","commit_stats":null,"previous_names":["emmanuelgautier/go-cli-template"],"tags_count":3,"template":true,"template_full_name":null,"purl":"pkg:github/emmanuelgautier/go-cli-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmanuelgautier%2Fgo-cli-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmanuelgautier%2Fgo-cli-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmanuelgautier%2Fgo-cli-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmanuelgautier%2Fgo-cli-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emmanuelgautier","download_url":"https://codeload.github.com/emmanuelgautier/go-cli-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emmanuelgautier%2Fgo-cli-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28561650,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","cli-template","golang","golang-examples","golang-template","template","template-project"],"created_at":"2024-09-24T20:24:36.929Z","updated_at":"2026-01-19T04:02:47.189Z","avatar_url":"https://github.com/emmanuelgautier.png","language":"Go","funding_links":["https://github.com/sponsors/emmanuelgautier","https://buymeacoffee.com/emmanuelgautier"],"categories":[],"sub_categories":[],"readme":"# Go CLI Template\n\n\u003cp align=\"left\"\u003e\n    \u003ca href=\"https://github.com/emmanuelgautier/go-cli-template/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://github.com/emmanuelgautier/go-cli-template/actions/workflows/ci.yml/badge.svg?branch=main\u0026event=push\" alt=\"CI Tasks for Go Cli template\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://goreportcard.com/report/github.com/emmanuelgautier/go-cli-template\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/emmanuelgautier/go-cli-template\" alt=\"Go Report Card\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://pkg.go.dev/github.com/emmanuelgautier/go-cli-template\"\u003e\u003cimg src=\"https://pkg.go.dev/badge/www.github.com/emmanuelgautier/go-cli-template\" alt=\"PkgGoDev\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nThis is a simple Go CLI (Command Line Interface) template that you can use as a starting point for building your own command-line applications in Go. It provides a basic structure and some common features to help you get started quickly.\n\n## Features\n\n- Command-line argument parsing using the [cobra](https://pkg.go.dev/github.com/spf13/cobra) package.\n- Simple subcommand support.\n- Github Actions workflow\n- GoReleaser preconfigured for Docker build, Github Release binaries (multi-archi) builds and snapcraft publishing.\n\n## Usage\n\n1. Clone or download this repository:\n\n```bash\ngit clone https://github.com/emmanuelgautier/go-cli-template.git\ncd go-cli-template\n```\n\n2. Build the CLI tool:\n\n```bash\ngo build -o go-cli-template\n```\n\n3. Run the CLI tool with the `--help` flag to see the available commands:\n\n```bash\n./go-cli-template --help\n```\n\nYou should see output similar to the following:\n\n```\nA simple Go CLI template.\n\nUsage:\n  go-cli-template [command]\n\nAvailable Commands:\n  completion  Generate the autocompletion script for the specified shell\n  hello       Prints a friendly greeting\n  help        Help about any command\n\nFlags:\n  -h, --help   help for go-cli-template\n\nUse \"go-cli-template [command] --help\" for more information about a command.\n```\n\n4. Run the `hello` subcommand:\n\n```bash\n./go-cli-template hello --name YourName\n```\n\nReplace `YourName` with your actual name. This command will print a greeting.\n\n## License\n\nThis Go CLI template is open-source and available under the MIT License. Feel free to use it as a starting point for your own CLI applications. Contributions and improvements are welcome!\n\n## Author\n\n[Emmanuel Gautier](https://www.emmanuelgautier.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femmanuelgautier%2Fgo-cli-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femmanuelgautier%2Fgo-cli-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femmanuelgautier%2Fgo-cli-template/lists"}