mattergo

command module
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: GPL-2.0 Imports: 16 Imported by: 0

README

MatterGo

What's this?

This is essentially Helm for Mattermost messages. If you know how to use Helm, this should be pretty straightforward for you.

It's a templating tool for those who want to send several, just slightly different messages on Mattermost.

How to use

Create a values.yml file, than create a templates folder. Put yaml files into the templates folder. These files need to form a list following types:

- direct:
    to: username
    message: message

or

- channel:
    team: "team"
    to: "channel name" 
    message: "message"

These files will be templated using Go templates, the base context (.) of the templates is your values.yml file.

For an example, see the example folder.

Once you created your templates and your values.yml, simply run the program. On the first run it will guide you through logging in, then send the messages you templated.

If you are interested in what the messages will look like, just use the -dry-run flag and the program will print the templated yaml.

Download

You can download pre-built binaries from the releases page.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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