Skip to content

rubberneck/mattermost-post

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mmpost

Like pbcopy/pbpaste for Mattermost

Config

A config file will be created on first run. $HOME/.config/mmpost/config.json

{
        "server": "",
        "pat": "",
        "team": "",
        "channel": "",
        "maxlines": 50,
        "syntax": "",
        "filename": ""
}

Get a Personal Access Token on mattermost server.

Account Setings -> Security -> Personal Access Tokens -> Create New Token.

Usage examples

Less than maxlines with a syntax

cat file.go | mmpost -syntax go

More than maxlines (will be an attachment)

cat file.go | mmpost -syntax go --filename file.go

See config flags

mmpost -h

File over 16300 bytes required to be an attachment so you have to use --filename

cat file.go | mmpost -syntax go --filename file.go

About

Like pbcopy/pbpaste for Mattermost

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages