diff --git a/cmd/motr/main.go b/cmd/motr/main.go index ed4fb66b7..769fceab6 100644 --- a/cmd/motr/main.go +++ b/cmd/motr/main.go @@ -1,12 +1,7 @@ package main -import "github.com/spf13/cobra" - func main() { - rootCmd := &cobra.Command{ - Use: "motr", - Short: "Manage a local DWN instance for the Sonr blockchain", - } + rootCmd := NewRootCmd() rootCmd.AddCommand(NewProxyCmd()) if err := rootCmd.Execute(); err != nil { panic(err) diff --git a/cmd/motr/root.go b/cmd/motr/root.go new file mode 100644 index 000000000..c354214b5 --- /dev/null +++ b/cmd/motr/root.go @@ -0,0 +1,10 @@ +package main + +import "github.com/spf13/cobra" + +func NewRootCmd() *cobra.Command { + return &cobra.Command{ + Use: "motr", + Short: "Manage a local DWN instance for the Sonr blockchain", + } +}