{"id":13629648,"url":"https://github.com/inkel/cmd2slack","last_synced_at":"2025-10-26T14:34:57.694Z","repository":{"id":57583418,"uuid":"83708335","full_name":"inkel/cmd2slack","owner":"inkel","description":"Execute a command and send its output to Slack","archived":false,"fork":false,"pushed_at":"2017-10-03T14:38:04.000Z","size":193,"stargazers_count":20,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T22:03:48.973Z","etag":null,"topics":["cli","devops","devops-tools","go","golang","slack","slack-api"],"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/inkel.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}},"created_at":"2017-03-02T17:56:35.000Z","updated_at":"2022-04-06T21:02:19.000Z","dependencies_parsed_at":"2022-08-30T21:13:03.542Z","dependency_job_id":null,"html_url":"https://github.com/inkel/cmd2slack","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inkel%2Fcmd2slack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inkel%2Fcmd2slack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inkel%2Fcmd2slack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inkel%2Fcmd2slack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inkel","download_url":"https://codeload.github.com/inkel/cmd2slack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250522302,"owners_count":21444511,"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","devops","devops-tools","go","golang","slack","slack-api"],"created_at":"2024-08-01T22:01:15.667Z","updated_at":"2025-10-26T14:34:52.647Z","avatar_url":"https://github.com/inkel.png","language":"Go","readme":"# cmd2slack - Execute a command and send its output to Slack\n\nExecute a command and send its `stdout` and `stderr` to a Slack channel as an [Incoming Webhook](https://api.slack.com/incoming-webhooks).\n\n## Usage\nFirst you need to set up an [incoming webhook integration](https://my.slack.com/services/new/incoming-webhook/) in your Slack workspace. Once done that, you will receive a webhook URL (`$HOOK` hencefort). That's all the configuration you need.\n\nOnce you have your webhook URL, just call your command prefixed by `cmd2slack`, like in the following example:\n\n```\n$ cmd2slack -hook $HOOK ping -c 5 google.com\n```\n\nIf the invocation was successful, you will receive a message like this:\n\n![success](success.png)\n\nIf the command executed exits with a failure code, the message will look like this:\n\n![failure](failure.png)\n\nThe are also additional flags you can pass the program:\n\n```\n$ cmd2slack --help\nUsage of cmd2slack:\n  -channel string\n        Channel where to post the output\n  -emoji string\n        Emoji to use\n  -hook string\n        Slack Incoming Webhook URL\n  -icon string\n        URL of icon to use\n  -timing\n        Include command execution timing\n  -username string\n        Username\n  -verbose\n        Show command execution on screen\n```\n\n## Installation\nIf you have a running Go environment, just do\n\n```\ngo install github.com/inkel/cmd2slack\n```\n\nIf you prefer instead downloading precompiled binaries, you can find them in the [releases](https://github.com/inkel/cmd2slack/releases) section. Just download the version you're looking for, place it in your `$PATH` and make it executable. Enjoy!\n\n## License\n\nMIT. See [LICENSE](LICENSE).\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finkel%2Fcmd2slack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finkel%2Fcmd2slack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finkel%2Fcmd2slack/lists"}