{"id":16335950,"url":"https://github.com/saschagrunert/ccli","last_synced_at":"2025-04-05T06:06:14.046Z","repository":{"id":18507603,"uuid":"84481572","full_name":"saschagrunert/ccli","owner":"saschagrunert","description":"Command line parsing in go, with coloring support 🌈","archived":false,"fork":false,"pushed_at":"2025-03-06T11:27:00.000Z","size":4236,"stargazers_count":82,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"v2","last_synced_at":"2025-03-29T05:05:49.469Z","etag":null,"topics":["colors","command-line-parser","go"],"latest_commit_sha":null,"homepage":"","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/saschagrunert.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":"2017-03-09T19:41:27.000Z","updated_at":"2025-03-06T11:27:02.000Z","dependencies_parsed_at":"2024-05-16T01:11:35.952Z","dependency_job_id":"6fac30ff-5ee1-4dc3-bc3f-2b6d20d45640","html_url":"https://github.com/saschagrunert/ccli","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saschagrunert%2Fccli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saschagrunert%2Fccli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saschagrunert%2Fccli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saschagrunert%2Fccli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saschagrunert","download_url":"https://codeload.github.com/saschagrunert/ccli/tar.gz/refs/heads/v2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247294536,"owners_count":20915340,"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":["colors","command-line-parser","go"],"created_at":"2024-10-10T23:42:48.563Z","updated_at":"2025-04-05T06:06:14.031Z","avatar_url":"https://github.com/saschagrunert.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ccli 🌈\n\n[![Build Status](https://travis-ci.org/saschagrunert/ccli.svg)](https://travis-ci.org/saschagrunert/ccli) [![godoc ccli](https://img.shields.io/badge/godoc-ccli-blue.svg)](https://godoc.org/gopkg.in/saschagrunert/ccli.v1) [![godoc ccli](https://img.shields.io/badge/gopkg-ccli-green.svg)](http://gopkg.in/saschagrunert/ccli.v1)\n\n## Command line parsing in go, with coloring support\n\nThis project uses the already existing go package [cli](https://github.com/urfave/cli) and adds additional coloring\nsupport to it. Some strong defaults are provided as well.\n\n![screenshot](.github/screenshot.png)\n\n## Usage\n\nInstall the package with:\n\n```shell\ngo get github.com/saschagrunert/ccli\n```\n\nAfterwards it can be used like the `cli` package:\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\t\"time\"\n\n\t\"github.com/saschagrunert/ccli\"\n\t\"github.com/urfave/cli/v2\"\n)\n\nfunc main() {\n\tapp := ccli.NewApp()\n\tapp.Name = \"AppName\"\n\tapp.Usage = \"App usage...\"\n\tapp.Version = \"0.1.0\"\n\tapp.Description = \"Application description\"\n\tapp.Copyright = fmt.Sprintf(\"© %d Some Company\", time.Now().Year())\n\tapp.Authors = []cli.Author{{Name: \"Name\", Email: \"e@mail.com\"}}\n\tapp.Flags = []cli.Flag{\n\t\tcli.StringFlag{\n\t\t\tName:  \"lang\",\n\t\t\tValue: \"english\",\n\t\t\tUsage: \"language for the greeting\",\n\t\t},\n\t}\n\tapp.Action = func(c *cli.Context) error {\n\t\tfmt.Println(\"boom! I say!\")\n\t\treturn nil\n\t}\n\tif err := app.Run(os.Args); err != nil {\n\t\tos.Exit(1)\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaschagrunert%2Fccli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaschagrunert%2Fccli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaschagrunert%2Fccli/lists"}