~sircmpwn/sourcehut-go

Go library and command line tool for the Sourcehut API
git.sr.ht: add repository deletion
git.sr.ht: make usage language consistent
git.sr.ht: always print repository URL

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~sircmpwn/sourcehut-go
read/write
git@git.sr.ht:~sircmpwn/sourcehut-go

You can also use your local clone with git send-email.

#sourcehut-go

sourcehut-go is a set of Go libraries and command line utilities for interacting with SourceHut via the API.

Note: this is a work in progress.

#Configuration

sourcehut-go looks for a configuration file at ~/.config/sourcehut.conf (or the XDG basedir-appropriate location). The simplest configuration is:

personal-access-token=...

You can generate a personal access token in your meta.sr.ht OAuth settings. The file can also be used to specify which upstream instance of sr.ht you want to talk to for each service:

personal-access-token=...

[meta.sr.ht]
origin=https://meta.sr.ht

[git.sr.ht]
origin=https://git.example.org

If you just use the canonical sr.ht instance for everything, then you don't need to configure this.