haunt/cmd/root.go
2023-03-04 14:22:03 -08:00

32 lines
399 B
Go

package cmd
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: "haunt",
Short: `Haunt: Go task automater and live-reloader.
.-.
(o o)
| O \
\ \
'~~'
`,
}
func Execute() {
err := rootCmd.Execute()
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}
func init() {
rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
}