Improve create --help and rebuild.

This commit is contained in:
Mr. Is 2016-07-29 11:09:46 -04:00
parent 7f7690323d
commit a009f7d67e
2 changed files with 3 additions and 3 deletions

View File

@ -19,14 +19,14 @@ var repoRemoteName string
var createCmd = &cobra.Command{ var createCmd = &cobra.Command{
Aliases: []string{"new", "n", "c"}, Aliases: []string{"new", "n", "c"},
Use: "create", Use: "create <name>",
Short: "Create a repository", Short: "Create a repository",
Long: `create [my-new-repo | [-n | --name]] [-d | --desc] [-org | --org] [-p | --private] [-r | --add-remote]] Long: `create my-new-repo | MyOrg/our-new-repo [-d | --desc] [-p | --private] [-r | --add-remote]]
$ gogs repo create my-new-repo $ gogs repo create my-new-repo
$ gogs repo new my-new-repo $ gogs repo new my-new-repo
$ gogs repo create -n=my-new-repo $ gogs repo create -n=my-new-repo
$ gogs repo create JustUsGuys/my-new-repo --desc="a thing with things" -p=true $ gogs repo create JustUsGuys/our-new-repo --desc="a thing with things" -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.`, $ gogs repo create my-new-repo --add-remote=origin Will initialize git if not already, too.`,
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {

BIN
gogs

Binary file not shown.