Skip to content

jguyomard/slack-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack CLI

This package offers some CLI commands to interact with Slack.

Get Started

1. Build Slack-CLI

go get github.com/jguyomard/slack-cli

Note: You need to set GOPATH correctly before running this.

Once you create this application, add files:read and files:write:user permissions.

Then, install this app: you will get an OAuth Access Token. Create config.yaml and edit it to add this token:

cp $GOPATH/src/github.com/jguyomard/slack-cli/config.yaml.sample /etc/slack-cli/config.yaml
vi /etc/slack-cli/config.yaml

3. Run this app

if $PATH contains $GOPATH/bin, slack-cli command is now available:

slack-cli --config-file=/etc/slack-cli/config.yaml

Usage

Purge old files

This command delete files older than 1 month from Slack.

slack-cli purge-files --dry-run

Testing

To run the test suite:

make test

To run the linter:

make lint

Issues

If you have any problems with or questions about this Service Provider, please contact me through a GitHub issue.

Contributing

You are invited to contribute new features, fixes or updates to this container, through a Github Pull Request.

About

💻 Some CLI commands to interact with Slack

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published