readem
This commit is contained in:
parent
d11905f9f3
commit
bc04c3643a
31
README.md
31
README.md
@ -49,13 +49,34 @@ 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
|
||||||
$ gogs repo create my-new-repo --desc 'awesome stuff' --private --org GophersGophering # optional flag [-n|--name] if you want to be very particular
|
# Create basic.
|
||||||
$ gogs repo new my-new-repo # new is an alias for create, and you don't have to use any flags if you don't want to
|
$ gogs repo create wheres-waldo # Create a repo owned by you.
|
||||||
$ gogs repo list # get all yo repos
|
$ gogs repo [create|new|c|n] wheres-waldo # All the same thing (aliases).
|
||||||
$ gogs repo search waldo --limit 1 --user thatguy # yep, flags are still optional
|
# Create fancy.
|
||||||
$ gogs repo find waldo # another alias
|
$ 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
|
||||||
|
# [Aliases] for create.
|
||||||
|
$ gogs repo [create|new|c|n]
|
||||||
|
|
||||||
|
# List basic.
|
||||||
|
$ gogs repo list # Get all yo repos.
|
||||||
|
$ gogs repo list -l 2 # Get only 2 of your repos.
|
||||||
|
|
||||||
|
# Search basic.
|
||||||
|
$ gogs repo search waldo
|
||||||
|
# Search fancy.
|
||||||
|
$ gogs repo search waldo --limit 1 --user thatguy # yep, flags are still optional (must specify user if searching for private repos)
|
||||||
|
# [Aliases] for search.
|
||||||
|
$ gogs repo [search|find|s|f]
|
||||||
|
|
||||||
|
# Destroy basic. (Watch out! Destroy won't ask twice. )
|
||||||
$ 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.
|
||||||
|
$ gogs repo [destroy|delete|d|rid]
|
||||||
```
|
```
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
@ -28,10 +28,7 @@ var createCmd = &cobra.Command{
|
|||||||
$ gogs repo create -n=my-new-repo
|
$ gogs repo create -n=my-new-repo
|
||||||
$ gogs repo create my-new-repo --desc="a thing with things" --org=JustUsGuys -p=true
|
$ gogs repo create my-new-repo --desc="a thing with things" --org=JustUsGuys -p=true
|
||||||
$ gogs repo new my-new-repo --private
|
$ gogs repo new my-new-repo --private
|
||||||
|
$ gogs repo create my-new-repo --add-remote=origin Will initialize git if not already, too.`,
|
||||||
Add your new repo as a remote to your working dir:
|
|
||||||
|
|
||||||
$ gogs repo create my-new-repo --add-remote=origin`,
|
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
|
|
||||||
// accept gogs repo create thingeys || gogs repo create -name=thingeys
|
// accept gogs repo create thingeys || gogs repo create -name=thingeys
|
||||||
|
Loading…
Reference in New Issue
Block a user