The Wayback Machine - http://web.archive.org/web/20200927050856/https://github.com/a-sync/slackfu
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

slackfu

Requirements

  • bash compatible shell
  • sane install of curl

Installation

  1. download and unpack the archive
  2. enter the unpacked directory and make slackfu executable
  3. set your authentication token in the SLACK_AUTH_TOKEN variable of slackfu
  4. create a global symbolic link
curl -sL https://github.com/a-sync/slackfu/archive/master.tar.gz | tar xz
cd slackfu-master && chmod +x slackfu
read -p "Enter authentication token: " SLACKAT && sed -i "3s|.*|SLACK_AUTH_TOKEN=\"$SLACKAT\"|" slackfu
sudo ln -s "$(readlink -f slackfu)" /usr/local/bin

Usage

Usage: slackfu [options] <file>

Options:
    -r <channel names|channel IDs>
    -n <file name>
    -t <title text>
    -f <initial comment>
    -T <authentication token>

Examples:
    slackfu somefile.jpg
    slackfu -r general -n "filename.log" somefile.txt
    ps | slackfu -r C8P15L0TV -t "$(id -un) $(hostname -f)"
    ls -la /etc/ | slackfu -r D024BE91L,random -f "$(history 1)"

About

Simple shell command to upload files and create snippets through the slack web API

Topics

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.