This commit is contained in:
Mr. Is 2016-07-28 09:36:03 -04:00
parent bc04c3643a
commit 9091ceab60
1 changed files with 25 additions and 14 deletions

View File

@ -49,34 +49,45 @@ You can build for linux with the nifty `env GOOS=linux go build -o gogs`. You ca
## Usage. ## Usage.
So far, you can do things. What's that? You can _do things_? Yep! Do things! So far, you can do things. What's that? You can _do things_? Yep! Do things!
```bash ```bash
# Create basic. # Create basic:
$ gogs repo create wheres-waldo # Create a repo owned by you. $ gogs repo create wheres-waldo # Create a repo owned by you.
$ gogs repo [create|new|c|n] wheres-waldo # All the same thing (aliases). # Create fancy:
# Create fancy. $ gogs repo create wheres-waldo --desc 'awesome stuff' --private --org GophersGophering
$ gogs repo create wheres-waldo --desc 'awesome stuff' --private --org GophersGophering # Descriptively, privately, for an org you own.
# Create fancy awesome.
# --> Create a gogs remote and add it to your current working directory,
# initializing git if necessary.
$ gogs repo create where-waldo -r origin $ gogs repo create where-waldo -r origin
# [Aliases] for create. # [Aliases] for create.
$ gogs repo [create|new|c|n] $ gogs repo [create|new|c|n]
# [Options] for create.
[-n | --name] # Name (or plain old args[0] also work, as above, obviously)
[-d | --desc] # Description
[-o | --org] # Owned by a an organization you own
[-p | --private] # Make repo private
[-r | --add-remote] # Add newly created gogs repo as a remote to your current git dir, initalizing git if necessary
# List basic. # List basic:
$ gogs repo list # Get all yo repos. $ gogs repo list # Get all yo repos.
$ gogs repo list -l 2 # Get only 2 of your repos.
# Search basic. # Search basic:
$ gogs repo search waldo $ gogs repo search waldo # Search public repos for keyword 'waldo'.
# Search fancy. # Search fancy:
$ gogs repo search waldo --limit 1 --user thatguy # yep, flags are still optional (must specify user if searching for private repos) $ gogs repo search waldo --limit 1 --user thatguy
# [Aliases] for search. # [Aliases] for search.
$ gogs repo [search|find|s|f] $ gogs repo [search|find|s|f]
# [Options] for search.
[-l | --limit] # Limit results
[-u | --user] # By user, required if you want to search private repos
# Destroy basic. (Watch out! Destroy won't ask twice. ) # Destroy basic:
$ gogs repo destroy irstacks my-exterminable-repo $ gogs repo destroy irstacks my-exterminable-repo
$ gogs repo destroy irstacks/my-other-exterminable-repo $ gogs repo destroy irstacks/my-other-exterminable-repo
# [Aliases] for destroy. # [Aliases] for destroy.
$ gogs repo [destroy|delete|d|rid] $ gogs repo [destroy|delete|d|rid]
# Help?!
# Add --help after any command to see what's up, ie.
$ gogs --help
$ gogs repo --help
$ gogs repo create --help
# and so on...
``` ```
<br> <br>
<br> <br>