{"id":37215954,"url":"https://github.com/dungtc/go-cli-playground","last_synced_at":"2026-01-15T00:58:31.145Z","repository":{"id":144460537,"uuid":"329882387","full_name":"dungtc/go-cli-playground","owner":"dungtc","description":"Create a simple cli (command line interface) tool from scratch in Golang","archived":false,"fork":false,"pushed_at":"2021-01-18T02:51:54.000Z","size":2319,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-03-21T22:09:08.058Z","etag":null,"topics":["boltdb","cli","cli-tool","golang","scratch","scratch-implementation","tool"],"latest_commit_sha":null,"homepage":"https://github.com/dungtc","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dungtc.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":"2021-01-15T10:37:44.000Z","updated_at":"2024-06-19T10:02:31.940Z","dependencies_parsed_at":null,"dependency_job_id":"7d541449-cf8b-4975-ac70-36ce02028d3d","html_url":"https://github.com/dungtc/go-cli-playground","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/dungtc/go-cli-playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dungtc%2Fgo-cli-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dungtc%2Fgo-cli-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dungtc%2Fgo-cli-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dungtc%2Fgo-cli-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dungtc","download_url":"https://codeload.github.com/dungtc/go-cli-playground/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dungtc%2Fgo-cli-playground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28440989,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:55:22.719Z","status":"ssl_error","status_checked_at":"2026-01-15T00:55:20.945Z","response_time":107,"last_error":"SSL_read: 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":["boltdb","cli","cli-tool","golang","scratch","scratch-implementation","tool"],"created_at":"2026-01-15T00:58:30.609Z","updated_at":"2026-01-15T00:58:31.139Z","avatar_url":"https://github.com/dungtc.png","language":"Go","readme":"# Create a simple cli (command line interface) tool from scratch in Golang\n\nA cli interacts with computer program like go, docker, k8s, npm, vice versa.\n\nExample:\n```console\n$ go get -u URL\n$ docker run -t image\n$ kubectl get pods\n$ npm install --save package\n```\n\nA common structure\n```\nApp Subcommands --Flags Args\n```\n\n**App** has many subcommands\n**Subcommands** has own flags and arguments\n\n# Build\n```console\n$ go install github.com/dungtc/go-cli-playground\n```\nIt will install your binary into $PATH\n\n\n# Usage\n\n### Help\n```console\n-help\n\tUsage:\n\t\tgo-cli-playground [command]\n\tAvailable Commands:\n\t\tadd         Add a new task\n\t\tcount       Count total tasks\n\t\tlist        List of tasks\n```\n\n### Add task command\n```console\n$ go-cli-playground add Make a cookie\n```\n\n\n### List task command\n```console\n$ go-cli-playground list\n1. Do some thing\n2. Make a cookie\n```\n\n### Count task command\n```console\n$ go-cli-playground count\nCount: 2\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdungtc%2Fgo-cli-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdungtc%2Fgo-cli-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdungtc%2Fgo-cli-playground/lists"}