This is an experimental project. By now it's just a proof of concept.
An attempt to create a command line tool to interact with a Gogs instance.
This assumes you have a Golang installation working, and GOPATH/bin
in you PATH
environment variable.
go get -u https://github.com/andreynering/gogscli/...
Configuration can be made by command line, and it's saved on $HOME/gogscli.ini
.
Set the HTTP/HTTPS URL of your Gogs instance:
gogscli config --remote=https://git.yourdomain.com
In order to have access to the Gogs API, you have to create and configure the
access token. To create it, navigate to User -> Configuration ->
Applications (/user/settings/applications
) in your Gogs instance.
Add it to Gogs Cli by doing:
gogscli config --token=YOUR_TOKEN_HERE
gogscli issue list user/repo
# syntax
gogscli issue add user/repo "Issue title" ["Optional issue body"] [--assignee=optionalassignee]
# example
gogscli issue add andreynering/gogscli "Please fix X" "etc, etc..." --assignee=andreynering
More to be added. Contributions are welcome.