From def9ed4e1b2388ccc1be2de56e6cbded39e4655d Mon Sep 17 00:00:00 2001 From: Victor Date: Wed, 21 Oct 2020 00:44:16 +0300 Subject: [PATCH] fix: rename lint to format --- cmd/manifest/{lint/lint.go => format/format.go} | 6 +++--- cmd/manifest/manifest.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename cmd/manifest/{lint/lint.go => format/format.go} (96%) diff --git a/cmd/manifest/lint/lint.go b/cmd/manifest/format/format.go similarity index 96% rename from cmd/manifest/lint/lint.go rename to cmd/manifest/format/format.go index 0da6485..c6d28bc 100644 --- a/cmd/manifest/lint/lint.go +++ b/cmd/manifest/format/format.go @@ -1,4 +1,4 @@ -package lint +package format import ( "context" @@ -22,8 +22,8 @@ var force bool var concurrentCount int var Cmd = &cobra.Command{ - Use: "lint", - Short: "Lint a Corn or Twitch modpack manifest, updating annotations", + Use: "format", + Short: "Format a Corn or Twitch modpack manifest, updating annotations", PreRun: func(cmd *cobra.Command, args []string) { manifestInput = viper.GetString("manifestInput") concurrentCount = viper.GetInt("concurrentCount") diff --git a/cmd/manifest/manifest.go b/cmd/manifest/manifest.go index aa257d5..a224559 100644 --- a/cmd/manifest/manifest.go +++ b/cmd/manifest/manifest.go @@ -2,7 +2,7 @@ package manifest import ( "cornstone/aliases/e" - "cornstone/cmd/manifest/lint" + "cornstone/cmd/manifest/format" "log" "github.com/spf13/cobra" @@ -25,5 +25,5 @@ func init() { log.Fatalln(e.P(err)) } - Cmd.AddCommand(lint.Cmd) + Cmd.AddCommand(format.Cmd) }