Skip to content

Commit

Permalink
chore: move intro command into subpackage for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
mroth committed Dec 8, 2021
1 parent f4a76b8 commit eacc8bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions intro.go → commands/intro/intro.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package main
package intro

import (
"fmt"

"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.`,
Expand Down
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit eacc8bd

Please sign in to comment.