haunt/cmd/root.go

30 lines
400 B
Go
Raw Permalink Normal View History

2023-03-04 22:22:03 +00:00
package cmd
import (
2023-03-05 07:28:07 +00:00
"github.com/sirupsen/logrus"
2023-03-04 22:22:03 +00:00
"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 {
2023-03-05 07:28:07 +00:00
logrus.Error(err)
return
2023-03-04 22:22:03 +00:00
}
}
func init() {
rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
}