From dc91ac00aeeb19968fd7e78998a8ec9ee5d6e91c Mon Sep 17 00:00:00 2001 From: Oliver Steele Date: Wed, 19 Jul 2017 16:06:43 -0400 Subject: [PATCH] Move cmd back to commands --- {cmd => commands}/commands.go | 2 +- {cmd => commands}/flags.go | 2 +- {cmd => commands}/logging.go | 2 +- {cmd => commands}/option_utils.go | 2 +- {cmd => commands}/run.go | 2 +- {cmd => commands}/run_test.go | 2 +- {cmd => commands}/version.go | 2 +- main.go | 4 ++-- 8 files changed, 9 insertions(+), 9 deletions(-) rename {cmd => commands}/commands.go (99%) rename {cmd => commands}/flags.go (99%) rename {cmd => commands}/logging.go (96%) rename {cmd => commands}/option_utils.go (98%) rename {cmd => commands}/run.go (99%) rename {cmd => commands}/run_test.go (92%) rename {cmd => commands}/version.go (96%) diff --git a/cmd/commands.go b/commands/commands.go similarity index 99% rename from cmd/commands.go rename to commands/commands.go index 4b85015..8079007 100644 --- a/cmd/commands.go +++ b/commands/commands.go @@ -1,4 +1,4 @@ -package cmd +package commands import ( "fmt" diff --git a/cmd/flags.go b/commands/flags.go similarity index 99% rename from cmd/flags.go rename to commands/flags.go index 7d01f57..b806466 100644 --- a/cmd/flags.go +++ b/commands/flags.go @@ -1,4 +1,4 @@ -package cmd +package commands import ( "github.com/osteele/gojekyll/config" diff --git a/cmd/logging.go b/commands/logging.go similarity index 96% rename from cmd/logging.go rename to commands/logging.go index 78fc07a..128cb24 100644 --- a/cmd/logging.go +++ b/commands/logging.go @@ -1,4 +1,4 @@ -package cmd +package commands import ( "fmt" diff --git a/cmd/option_utils.go b/commands/option_utils.go similarity index 98% rename from cmd/option_utils.go rename to commands/option_utils.go index 73228a3..11663df 100644 --- a/cmd/option_utils.go +++ b/commands/option_utils.go @@ -1,4 +1,4 @@ -package cmd +package commands import ( "strconv" diff --git a/cmd/run.go b/commands/run.go similarity index 99% rename from cmd/run.go rename to commands/run.go index 0c0d421..28786af 100644 --- a/cmd/run.go +++ b/commands/run.go @@ -1,4 +1,4 @@ -package cmd +package commands import ( "os" diff --git a/cmd/run_test.go b/commands/run_test.go similarity index 92% rename from cmd/run_test.go rename to commands/run_test.go index dff10b4..885f4de 100644 --- a/cmd/run_test.go +++ b/commands/run_test.go @@ -1,4 +1,4 @@ -package cmd +package commands import ( "testing" diff --git a/cmd/version.go b/commands/version.go similarity index 96% rename from cmd/version.go rename to commands/version.go index 52b8c2b..d957e97 100644 --- a/cmd/version.go +++ b/commands/version.go @@ -1,4 +1,4 @@ -package cmd +package commands import ( "fmt" diff --git a/main.go b/main.go index 3e5210e..8fba512 100644 --- a/main.go +++ b/main.go @@ -4,11 +4,11 @@ import ( "fmt" "os" - "github.com/osteele/gojekyll/cmd" + "github.com/osteele/gojekyll/commands" ) func main() { - err := cmd.ParseAndRun(os.Args[1:]) + err := commands.ParseAndRun(os.Args[1:]) if err != nil { fmt.Fprintln(os.Stderr, err) // nolint: gas os.Exit(1)