schnutibox/cmd/timer.go
Marvin Preuss 63a16a3253
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build was killed
modifies the command line interface handling / timer work
2021-08-09 10:49:04 +02:00

22 lines
410 B
Go

package cmd
import (
"os"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"go.xsfx.dev/schnutibox/pkg/timer"
)
// nolint:gochecknoglobals
var timerCmd = &cobra.Command{
Use: "timer",
Short: "Handling timer",
Run: timer.Run,
PreRun: func(cmd *cobra.Command, args []string) {
log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr})
initConfig(false)
},
}