{"id":36491509,"url":"https://github.com/bijeshos/go-cli-examples","last_synced_at":"2026-01-12T01:56:19.443Z","repository":{"id":57514831,"uuid":"242730092","full_name":"bijeshos/go-cli-examples","owner":"bijeshos","description":"An example CLI implementation using Go","archived":false,"fork":false,"pushed_at":"2020-06-06T17:43:28.000Z","size":52,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T16:37:22.092Z","etag":null,"topics":["cli","go","golang"],"latest_commit_sha":null,"homepage":null,"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/bijeshos.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}},"created_at":"2020-02-24T12:25:19.000Z","updated_at":"2024-06-20T16:37:22.093Z","dependencies_parsed_at":"2022-09-26T18:00:54.328Z","dependency_job_id":null,"html_url":"https://github.com/bijeshos/go-cli-examples","commit_stats":null,"previous_names":["bijeshos/go-cli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bijeshos/go-cli-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bijeshos%2Fgo-cli-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bijeshos%2Fgo-cli-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bijeshos%2Fgo-cli-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bijeshos%2Fgo-cli-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bijeshos","download_url":"https://codeload.github.com/bijeshos/go-cli-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bijeshos%2Fgo-cli-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28331344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"ssl_error","status_checked_at":"2026-01-12T00:36:15.229Z","response_time":60,"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","go","golang"],"created_at":"2026-01-12T01:56:18.461Z","updated_at":"2026-01-12T01:56:19.425Z","avatar_url":"https://github.com/bijeshos.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go CLI Examples\nThis repository contains a sample Command Line Interface implementaion using Go. \n\n\n# Projects\nAt the moment, this repo has one sample implementation: **deployer**. It is a scaffoling for an imaginary deployment automation tool for a 3-tier application, which has Web, API and Database artifacts to deploy. This CLI will act as an entry point for the automation actions such as deploy, undeploy and status check. \n\nFor more details about this project, refer to the following article on Medium:\n- [Building Command Line Interfaces using Go](https://medium.com/swlh/building-command-line-interfaces-using-go-ce6a75d60bf5)\n\n\n# Building the project\n\n- Go to **deployer** sub directory\n- On Linux, go to a terminal and execute the following:\n   - `$ go build -o build/deployer`\n     - This will create an executable called deployer in build sub directory.\n\n- On Windows, it can be done by going to command prompt and executing the following:\n  - `$ go build -o build/deployer.exe`\n    - This will generate an executable called deployer.exe in build sub directory.\n\n- In you would like to generate binaries for multiple platforms \u0026 architectures, you could do as follows (On Linux, Windows or Mac). \n\n  - For Linux 64 bit target system:\n    - `$ env GOOS=linux GOARCH=amd64 go build -o build/deployer`\n  - For Windows 64 bit target system:\n    - `$ env GOOS=windows GOARCH=amd64 go build -o build/deployer.exe`\n\n# Execution\nGo to **deployer/build** sub directory.\n\nOn Linx\n- `$ ./deployer help`\n- `$ ./deployer deploy help`\n- `$ ./deployer deploy web help`\n- `$ ./deployer deploy web --config web-deploy-config.yaml`\n\n\n# References\nIf you would like to explore more, please refer to the official repositories of Cobra and Viper. \n - Cobra: https://github.com/spf13/cobra\n - Viper: https://github.com/spf13/viper\n\nTo know more on Go, please refer to the official Go website. \n- Go: https://golang.org/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbijeshos%2Fgo-cli-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbijeshos%2Fgo-cli-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbijeshos%2Fgo-cli-examples/lists"}