{"id":16215964,"url":"https://github.com/brianstrauch/cobra-shell","last_synced_at":"2025-08-21T04:30:47.795Z","repository":{"id":41886218,"uuid":"433636150","full_name":"brianstrauch/cobra-shell","owner":"brianstrauch","description":"Generate an interactive, autocompleting shell for any Cobra CLI","archived":false,"fork":false,"pushed_at":"2024-05-29T10:34:05.000Z","size":61,"stargazers_count":42,"open_issues_count":3,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-11T11:17:15.463Z","etag":null,"topics":["cli","cobra","go-prompt"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brianstrauch.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":"2021-12-01T00:54:15.000Z","updated_at":"2024-05-19T14:24:20.000Z","dependencies_parsed_at":"2024-10-25T17:18:44.435Z","dependency_job_id":"55fa83c0-1661-408b-87bc-6b1b8d6c146b","html_url":"https://github.com/brianstrauch/cobra-shell","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianstrauch%2Fcobra-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianstrauch%2Fcobra-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianstrauch%2Fcobra-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianstrauch%2Fcobra-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brianstrauch","download_url":"https://codeload.github.com/brianstrauch/cobra-shell/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230487844,"owners_count":18233865,"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":["cli","cobra","go-prompt"],"created_at":"2024-10-10T11:17:19.646Z","updated_at":"2024-12-19T19:08:33.466Z","avatar_url":"https://github.com/brianstrauch.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cobra-shell\n\n![logo](https://cobra.dev/home/logo.png)\n\n## Description\n\nLeverages the Cobra completion API to generate an interactive shell for any [Cobra](https://github.com/spf13/cobra) CLI, powered by [go-prompt](https://github.com/c-bata/go-prompt).\n\n* On-the-fly autocompletion for all commands\n* Static and dynamic autocompletion for args and flags, as described [here](https://github.com/spf13/cobra/blob/master/shell_completions.md)\n* Full prompt customizability\n\n## Usage\n\n\u003cimg src=\"https://user-images.githubusercontent.com/7474900/144362981-68bcb984-fbfd-4df5-9194-8d9e92bd65ca.gif\" width=\"50%\" /\u003e\n\n## Download\n\n```\ngo get github.com/brianstrauch/cobra-shell\n```\n\n## Example\n\n```\npackage main\n\nimport (\n    shell \"github.com/brianstrauch/cobra-shell\"\n    \"github.com/spf13/cobra\"\n)\n\nfunc main() {\n\tcmd := \u0026cobra.Command{Use: \"example\"}\n\tcmd.AddCommand(shell.New())\n\t_ = cmd.Execute()\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianstrauch%2Fcobra-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianstrauch%2Fcobra-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianstrauch%2Fcobra-shell/lists"}