lmk is a command-line tool that monitors a CLI command and sends a Slack notification when the command finishes.
lmk --token $SLACK_BOT_TOKEN --channel $SLACK_CHANNEL_ID sleep 5See Setup for more details.
cargo buildYou'll need a Slack bot token so that lmk is able to authenticate with and use the Slack HTTP API. Follow their guide to obtain one.
This is the ID of the channel you'd like lmk to post notifications to. After you've created an App for your organization (see Obtaining a Slack HTTP API Bot Token), invite your app to a channel or conversation and copy its ID. On a channel or conversation, click on the caret to the right of the title. A modal will pop up. The channel ID will be at the bottom.