haunt/cmd/root.go
abs3nt c0e975e139
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix: error could cause infinite hang
2023-03-04 23:28:07 -08:00

30 lines
400 B
Go

package cmd
import (
"github.com/sirupsen/logrus"
"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 {
logrus.Error(err)
return
}
}
func init() {
rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
}