Skip to content

Ragnaroek/run-slacker

Repository files navigation

Build Status codecov

run-slacker

runs a program, slacks the result

Configuration

run-slacker can be configured with a toml file:

dir = "/working/dir"
prog = "ls"
args = ["-alh"]

[slack]
hook = "https://hooks.slack.com/services/your/slackurl"

It slacks you the output and small hint if the command failed or succeeded. This example shows a successfull run: OK run

A failed run, provoked with following configuration as an example, looks like this:

dir = "/working/dir"
prog = "sh"
args = ["-c", "exit 1"]

[slack]
hook = "https://hooks.slack.com/services/your/slackurl"

Fail run

That's basically it. Look at the example_conf.toml file in the repository root for some more options.

You start the run-slacker like this:

rslacker --config=path/to/config.toml

To check the configuration add the --dry-run option

rslacker --config=path/to/config.toml --dry-run

It doesn't slack anything and just prints the configuration it uses.

About

runs a program, slacks the result

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published