yufan.me/tools/cmd/root.go

21 lines
316 B
Go
Raw Normal View History

package cmd
import (
"os"
"github.com/spf13/cobra"
)
// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "tools",
Short: "A set of useful tools for writing in weblog",
}
func Execute() {
err := rootCmd.Execute()
if err != nil {
os.Exit(1)
}
}