rslack

Crates.iorslack
lib.rsrslack
version0.5.0
sourcesrc
created_at2021-11-23 03:18:30.225586
updated_at2024-09-14 05:48:36.42666
descriptioncli for posting slack message
homepage
repositoryhttps://github.com/kohbis/rslack
max_upload_size
id486010
size134,604
Kohei Sugimoto (kohbis)

documentation

README

rslack

select channel

Setting

  1. Create new app

  2. Create OAuth Token OAuth & Permissions

    1. User Token Scopes
      • channels:read
      • chat:write
    2. OAuth Tokens & Redirect URLs
      1. Install App to Workspace
      2. Tokens for Your Workspace -> copy OAuth Access Token
  3. Setting OAuth Token

    export RSLACK_TOKEN=your-token
    

Usage

# Install
brew install kohbis/rslack/rslack

# Configuration
# If both are set, use the value of `.rslack
export RSLACK_TOKEN=your-token
# or
echo "RSLACK_TOKEN=your-token" > ${HOME}/.rslack

rslack

Local Build & Run

# Configuration
# and
cargo run --release

Test

cargo test
Commit count: 572

cargo fmt