script2matrix

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

README

script2matrix

Runs a script and sends its stdout to a Matrix chat.

Usage

Build with make, install with make install. Run like this:

script2matrix <command> [arg...]
# for example:
script2matrix ls -l ./releases

The credentials for Matrix are given in environment variables:

export MATRIX_USER=@myuser:example.org       # user account used by script2matrix
export MATRIX_PASSWORD=aegh3Iif0Ge5epeivaih  # password for that user account
export MATRIX_TARGET=#channel:example.org    # must be a room alias starting with "#"

All environment variables given to script2matrix are passed on to the command that it runs, except for those starting with MATRIX_.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL