Go to file
2022-11-23 21:30:12 +01:00
credentials.go initial 2022-11-20 22:40:43 +01:00
go.mod ignore boosts option for timline command 2022-11-23 20:56:05 +01:00
go.sum ignore boosts option for timline command 2022-11-23 20:56:05 +01:00
LICENSE add readme and license 2022-11-20 23:08:53 +01:00
Readme.md typo 2022-11-21 07:19:33 +01:00
swill.go replace html/template with text/template 2022-11-23 21:30:12 +01:00

swill

swill is a Mastodon command line interface.

You can find releases on releases.gutmet.org or build it yourself.

build

Check out the repository and compile with

go build -o swill

usage

To update your status with text of any length and any number of JPGs, PNGs, GIFs, MP4s:

swill status STATUS [FILE1 FILE2 ...]

To get the timeline of a specific user:

swill timeline USERNAME

On first use, swill will ask you to register a new app and create an access token. Those values will be stored in HOME/.swill/ for later use.

swill will automatically split large status messages and multiple files into separate statuses belonging to the same thread.

Each command can use a go text template to format the printed results - pass a file name to '--template'. The template is executed with a slice of []*mastodon.Status. See go-mastodon for available data fields.

final note

swill does not sanitize/validate user input for now.

final final note

If you want to buy me a beer, just send inconspicuous envelopes.