cosmos-sdk/cmd/cosmos-sdk-cli/cmd/root.go

25 lines
357 B
Go

package cmd
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: "cosmos-sdk-cli",
Short: "Tools to develop on cosmos-sdk",
Run: func(cmd *cobra.Command, args []string) {
// Do Stuff Here
},
}
// Execute the command
func Execute() {
if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}
}