{"id":18293750,"url":"https://github.com/withfig/fig_kingpin","last_synced_at":"2025-04-12T11:33:06.290Z","repository":{"id":175045653,"uuid":"653267631","full_name":"withfig/fig_kingpin","owner":"withfig","description":"Generate Fig Spec from Go Kingpin","archived":false,"fork":false,"pushed_at":"2023-06-15T21:32:51.000Z","size":11,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-26T06:11:37.196Z","etag":null,"topics":[],"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/withfig.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":"2023-06-13T18:11:39.000Z","updated_at":"2024-08-24T23:34:11.000Z","dependencies_parsed_at":"2023-06-29T20:15:28.800Z","dependency_job_id":null,"html_url":"https://github.com/withfig/fig_kingpin","commit_stats":null,"previous_names":["withfig/fig_kingpin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withfig%2Ffig_kingpin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withfig%2Ffig_kingpin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withfig%2Ffig_kingpin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withfig%2Ffig_kingpin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/withfig","download_url":"https://codeload.github.com/withfig/fig_kingpin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248560061,"owners_count":21124586,"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-11-05T14:26:00.927Z","updated_at":"2025-04-12T11:33:06.283Z","avatar_url":"https://github.com/withfig.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fig Kingpin\n\nSupport for generating Fig Spec from [Kingpin CLI apps](https://github.com/alecthomas/kingpin)\n\n## Usage\n\n### 1. Add the `figkingpin` package and `--completion-spec-fig` to your app\n\n```go\nimport (\n\t\"github.com/alecthomas/kingpin/v2\"\n\n\t// 1. Add the figkingpin package\n\tfigkingpin \"github.com/withfig/fig_kingpin\"\n)\n\nvar (\n\tapp = kingpin.New(\"App\", \"A demo app\")\n\n\t// 2. Add a top level flag to gen fig spec, it is hidden from the help output\n\tcompletionSpecFig = app.Flag(\"completion-spec-fig\", \"Generate completion script for fig.\").Hidden().PreAction(figkingpin.GenerateFigCompletionSpec(app)).Bool()\n)\n```\n\n### 2. Generate a Fig Spec via `--completion-spec-fig`\n\n```bash\ngo run main.go --completion-spec-fig \u003e fig-spec.ts\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwithfig%2Ffig_kingpin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwithfig%2Ffig_kingpin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwithfig%2Ffig_kingpin/lists"}