From bc04c3643ae7676991596b6cf581f1a037a89225 Mon Sep 17 00:00:00 2001 From: "Mr. Is" Date: Thu, 28 Jul 2016 09:24:51 -0400 Subject: [PATCH] readem --- README.md | 31 ++++++++++++++++++++++++++----- cmd/repo-create.go | 5 +---- 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 46ea93e..8efd3bc 100644 --- a/README.md +++ b/README.md @@ -49,13 +49,34 @@ You can build for linux with the nifty `env GOOS=linux go build -o gogs`. You ca ## Usage. So far, you can do things. What's that? You can _do things_? Yep! Do things! ```bash -$ gogs repo create my-new-repo --desc 'awesome stuff' --private --org GophersGophering # optional flag [-n|--name] if you want to be very particular -$ 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 list # get all yo repos -$ gogs repo search waldo --limit 1 --user thatguy # yep, flags are still optional -$ gogs repo find waldo # another alias +# Create basic. +$ 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. +$ 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-other-exterminable-repo +# [Aliases] for destroy. +$ gogs repo [destroy|delete|d|rid] ```

diff --git a/cmd/repo-create.go b/cmd/repo-create.go index 25601ea..836d670 100644 --- a/cmd/repo-create.go +++ b/cmd/repo-create.go @@ -28,10 +28,7 @@ var createCmd = &cobra.Command{ $ gogs repo create -n=my-new-repo $ gogs repo create my-new-repo --desc="a thing with things" --org=JustUsGuys -p=true $ gogs repo new my-new-repo --private - - Add your new repo as a remote to your working dir: - - $ gogs repo create my-new-repo --add-remote=origin`, + $ gogs repo create my-new-repo --add-remote=origin Will initialize git if not already, too.`, Run: func(cmd *cobra.Command, args []string) { // accept gogs repo create thingeys || gogs repo create -name=thingeys