1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-17 04:30:03 +02:00
thalos/cmd/tools/main.go

33 lines
569 B
Go

package main
import (
"os"
"github.com/spf13/cobra"
log "github.com/sirupsen/logrus"
)
var VersionString string = "dev"
var rootCmd = &cobra.Command{
Use: os.Args[0],
Short: "Collection of tools for dealing with the thalos application",
Version: VersionString,
}
func init() {
// Initialize logger
formatter := log.TextFormatter{
FullTimestamp: true,
TimestampFormat: "2006-01-02 15:04:05.0000",
}
log.SetFormatter(&formatter)
}
func main() {
if err := rootCmd.Execute(); err != nil {
log.WithError(err).Fatal("Application error")
}
}