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
- Host: GitHub
- URL: https://github.com/mattddowney/gogs-bash
- Owner: mattddowney
- License: mit
- Created: 2017-02-17T21:24:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-31T23:11:17.000Z (about 6 years ago)
- Last Synced: 2025-04-06T11:48:46.715Z (3 months ago)
- Topics: api, bash, cli, command-line, command-line-tool, curl, git, gogs, shell, version-control, webhook
- Language: Shell
- Homepage:
- Size: 14.6 KB
- Stars: 30
- Watchers: 5
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 repoUse "./gogs help [command]" for more information about a command.
```