An open API service indexing awesome lists of open source software.

https://github.com/mattddowney/gogs-bash

Bash Script for Interacting with the GOGS API
https://github.com/mattddowney/gogs-bash

api bash cli command-line command-line-tool curl git gogs shell version-control webhook

Last synced: about 2 months ago
JSON representation

Bash Script for Interacting with the GOGS API

Awesome Lists containing this project

README

        

gogs-bash
=========

Interact with the [GOGS](https://gogs.io/) API from bash.

Create repositories and manage webooks.

Setup:
------

Set the following environment variables:

* GOGS_ROOT_URL - The url of the GOGS server (IE: http://try.gogs.io)
* GOGS_TOKEN - Access token obtained from GOGS (http://try.gogs.io/user/settings/applications)

Usage:
------

```
$ ./gogs
./gogs is a tool for interacting with the GOGS API.

Usage:
./gogs command [arguments]

The commands are:

create-repo create a repository
create-webhook create a webhook
delete-webhook delete a webhook
env print environment information
get-repos get a list of repos by search keyword
get-user-repos get a list of repos for a user
get-users get a list of users by search keyword
get-webhooks get a list of webhooks for a repo

Use "./gogs help [command]" for more information about a command.
```