{"id":16841075,"url":"https://github.com/bobheadxi/ctl","last_synced_at":"2025-07-25T14:14:19.998Z","repository":{"id":87617161,"uuid":"156183217","full_name":"bobheadxi/ctl","owner":"bobheadxi","description":"🐒 Package ctl enables drop-in gRPC client integration for your service into command-line applications","archived":false,"fork":false,"pushed_at":"2018-11-05T19:34:37.000Z","size":4,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T12:50:12.954Z","etag":null,"topics":["cli","client","golang","grpc","grpc-client","reflection"],"latest_commit_sha":null,"homepage":"","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/bobheadxi.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":"2018-11-05T08:19:52.000Z","updated_at":"2023-09-08T17:46:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"917029b3-6c81-470b-8387-182ad781de27","html_url":"https://github.com/bobheadxi/ctl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bobheadxi/ctl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobheadxi%2Fctl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobheadxi%2Fctl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobheadxi%2Fctl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobheadxi%2Fctl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bobheadxi","download_url":"https://codeload.github.com/bobheadxi/ctl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobheadxi%2Fctl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267018502,"owners_count":24022279,"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","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cli","client","golang","grpc","grpc-client","reflection"],"created_at":"2024-10-13T12:39:54.376Z","updated_at":"2025-07-25T14:14:19.974Z","avatar_url":"https://github.com/bobheadxi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ctl\n\nPackage ctl provides a library that makes it easy to embed a simple, minimal\nclient into your Go program to interact with your gRPC server.\n\n## Usage\n\nAPI is still WIP and subject to change, but here's the general gist:\n\n```go\nimport \"github.com/bobheadxi/ctl\"\n\nfunc main() {\n  // instantiate your gRPC client\n  c, _ := client.New( /* ... */ )\n\n  // create a controller\n  controller, _ := ctl.New(c)\n\n  // show help if you want\n  if os.Args != nil \u0026\u0026 len(os.Args) == 1 \u0026\u0026 os.Args[0] == \"help\" {\n    controller.Help(os.Stdout)\n    return\n  }\n\n  // execute command\n  out, _ := controller.Exec(os.Args[0:], os.Stdout)\n\n  // print the output\n  fmt.Printf(\"%v\\n\", out)\n}\n```\n\nIn a command line application, you can then run:\n\n```sh\n$\u003e my-command SomeRPCCall RequestParam=blah AnotherRequestParam=wow\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbobheadxi%2Fctl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbobheadxi%2Fctl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbobheadxi%2Fctl/lists"}