diff --git a/intro.go b/commands/intro/intro.go similarity index 97% rename from intro.go rename to commands/intro/intro.go index 76e9cb2..bee4904 100644 --- a/intro.go +++ b/commands/intro/intro.go @@ -1,4 +1,4 @@ -package main +package intro import ( "fmt" @@ -6,7 +6,7 @@ import ( "github.com/spf13/cobra" ) -var introCmd = &cobra.Command{ +var IntroCmd = &cobra.Command{ Use: "intro", Short: "Displays an introduction to scmpuff", Long: `Displays an introduction to using scmpuff.`, diff --git a/main.go b/main.go index 602c310..c4286f1 100644 --- a/main.go +++ b/main.go @@ -6,6 +6,7 @@ import ( "github.com/mroth/scmpuff/commands/exec" "github.com/mroth/scmpuff/commands/expand" "github.com/mroth/scmpuff/commands/inits" + "github.com/mroth/scmpuff/commands/intro" "github.com/mroth/scmpuff/commands/status" "github.com/spf13/cobra" @@ -40,8 +41,8 @@ var versionCmd = &cobra.Command{ } func main() { - puffCmd.AddCommand(introCmd) puffCmd.AddCommand(versionCmd) + puffCmd.AddCommand(intro.IntroCmd) puffCmd.AddCommand(inits.CommandInit()) puffCmd.AddCommand(exec.CommandExec()) puffCmd.AddCommand(expand.CommandExpand())