From e6c1f2b577f1e0d1d1134ef60977429f7eebd7a6 Mon Sep 17 00:00:00 2001 From: ia Date: Wed, 13 Jun 2018 15:27:04 +0200 Subject: [PATCH] all: gofmt Formatted by the great automatic gofmter, <3 fmtatt. --- cmd/repo-migrate.go | 11 ++++++----- cmd/root.go | 2 +- cmd/util.go | 2 -- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/cmd/repo-migrate.go b/cmd/repo-migrate.go index cafb9c8..6d16a8f 100644 --- a/cmd/repo-migrate.go +++ b/cmd/repo-migrate.go @@ -9,18 +9,19 @@ import ( ) // Flags. -var migrateMirror bool +var migrateMirror bool var migratePrivate bool func unusableUsage() { fmt.Println("Please argue me / ") return } + // migrateCmd represents the migrate command var migrateCmd = &cobra.Command{ Aliases: []string{"m"}, - Use: "migrate, m", - Short: "Migrate a repository from a given remote source.", + Use: "migrate, m", + Short: "Migrate a repository from a given remote source.", Long: `Usage: $ gogs repo migrate irstacks/copycat https://github.com/gogits/gogs.git @@ -73,7 +74,7 @@ Options: } opts.CloneAddr = migrateUrl - opts.RepoName = ownernameReponame[1] + opts.RepoName = ownernameReponame[1] opts.Mirror = migrateMirror opts.Private = migratePrivate @@ -84,7 +85,7 @@ Options: } fmt.Println("Repo migrated! Woohoo!") - printRepo(repo) + printRepo(repo) }, } diff --git a/cmd/root.go b/cmd/root.go index ef6f6e3..5feb107 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -97,7 +97,7 @@ func initConfig() { fmt.Println("No configuration file found. Is there for sure one at $HOME/.go-gogs-cli.yaml?") } - // These should override any configFile or env vars. + // These should override any configFile or env vars. if tokenArg != "" { viper.Set("token", tokenArg) } diff --git a/cmd/util.go b/cmd/util.go index 828d91f..991517d 100644 --- a/cmd/util.go +++ b/cmd/util.go @@ -1,4 +1,3 @@ - package cmd import ( @@ -24,7 +23,6 @@ func getUserByName(userName string) (user *gogs.User, err error) { return user, err } - // This sucker is really annoying. Gogs Client says that search is a thing. // And it is, it does work. // But... I can't find it in the package. It's just not there. I've looked.