{"id":18733282,"url":"https://github.com/autom8ter/cobraslack","last_synced_at":"2026-04-20T06:06:04.752Z","repository":{"id":140621210,"uuid":"235249357","full_name":"autom8ter/cobraslack","owner":"autom8ter","description":"create a slack slash command handler that executes a cobra command","archived":false,"fork":false,"pushed_at":"2020-11-02T18:08:13.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T04:31:58.046Z","etag":null,"topics":["cobra","golang","slack","slack-bot"],"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/autom8ter.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":"2020-01-21T03:37:57.000Z","updated_at":"2023-03-05T06:10:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"2bd8db01-5d30-427b-a699-d3e6b30c852c","html_url":"https://github.com/autom8ter/cobraslack","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/autom8ter/cobraslack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autom8ter%2Fcobraslack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autom8ter%2Fcobraslack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autom8ter%2Fcobraslack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autom8ter%2Fcobraslack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/autom8ter","download_url":"https://codeload.github.com/autom8ter/cobraslack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autom8ter%2Fcobraslack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281969169,"owners_count":26591718,"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-10-31T02:00:07.401Z","response_time":57,"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":["cobra","golang","slack","slack-bot"],"created_at":"2024-11-07T15:09:16.771Z","updated_at":"2025-10-31T09:46:39.875Z","avatar_url":"https://github.com/autom8ter.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cobraslack\n--\n    import \".\"\n\n\n## Usage\n\n#### func  QueryHandler\n\n```go\nfunc QueryHandler(cmd *cobra.Command) http.HandlerFunc\n```\nQueryHandler returns an http handler that sets the arguments to the root cobra\ncommand from the text of the 'text' query paramater the output of the cobra\ncommand is written directly to the response body. example executing \"echo -h\"\nsubcommand: curl -X GET \"$(host)/command?text=echo%20-h\"\n\n#### func  SlackHandler\n\n```go\nfunc SlackHandler(cmd *cobra.Command, verificationToken string) http.HandlerFunc\n```\nSlackHandler returns an http handler that sets the arguments to the root cobra\ncommand from the text of the slash command the output of the cobra command is\nwritten directly to the response body as a slack message. example executing\n\"echo -h\" subcommand: curl -X POST \"$(host)/command\" --data \"text=echo -h\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautom8ter%2Fcobraslack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautom8ter%2Fcobraslack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautom8ter%2Fcobraslack/lists"}