{"id":23246476,"url":"https://github.com/openware/kli","last_synced_at":"2025-07-21T11:05:06.346Z","repository":{"id":196484890,"uuid":"696198843","full_name":"openware/kli","owner":"openware","description":"Tiny CLI building tools for go apps","archived":false,"fork":false,"pushed_at":"2023-09-25T10:20:58.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-18T14:53:52.579Z","etag":null,"topics":[],"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/openware.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}},"created_at":"2023-09-25T09:35:14.000Z","updated_at":"2025-02-17T02:55:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"8eb39cd2-f963-436a-80ae-bd15218f509e","html_url":"https://github.com/openware/kli","commit_stats":null,"previous_names":["openware/kli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/openware/kli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openware%2Fkli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openware%2Fkli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openware%2Fkli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openware%2Fkli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openware","download_url":"https://codeload.github.com/openware/kli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openware%2Fkli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266287824,"owners_count":23905461,"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":[],"created_at":"2024-12-19T07:15:13.624Z","updated_at":"2025-07-21T11:05:06.317Z","avatar_url":"https://github.com/openware.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# A Simple CLI library. Dependency free.\n\n### Features\n\n  * Nested Subcommands\n  * Uses the standard library `flag` package\n  * Auto-generated help\n  * Custom banners\n  * Hidden Subcommands\n  * Default Subcommand\n  * Dependency free\n\n### Example\n\n```go\npackage main\n\nimport (\n   \"fmt\"\n   \"log\"\n\n\t\"github.com/layer-3/neodax/finex/pkg/kli\"\n)\n\nfunc main() {\n\n\t// Create new cli\n\tcli := kli.NewCli(\"Flags\", \"A simple example\", \"v0.0.1\")\n\n\t// Name\n\tname := \"Anonymous\"\n\tcli.StringFlag(\"name\", \"Your name\", \u0026name)\n\n\t// Define action for the command\n\tcli.Action(func() error {\n\t\tfmt.Printf(\"Hello %s!\\n\", name)\n\t\treturn nil\n\t})\n\n\tif err := cli.Run(); err != nil {\n\t\tfmt.Printf(\"Error encountered: %v\\n\", err)\n\t}\n\n}\n```\n\n#### Generated Help\n\n```shell\n$ flags --help\nFlags v0.0.1 - A simple example\n\nFlags:\n\n  -help\n        Get help on the 'flags' command.\n  -name string\n        Your name\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenware%2Fkli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenware%2Fkli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenware%2Fkli/lists"}