This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
2019-05-31 10:07:40 +02:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/bdlm/log"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
timestamps bool
|
|
|
|
)
|
|
|
|
|
|
|
|
// RootCmd represents the base command when called without any subcommands
|
|
|
|
var RootCmd = &cobra.Command{
|
|
|
|
Use: "thrempp",
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute adds all child commands to the root command and sets flags appropriately.
|
|
|
|
// This is called by main.main(). It only needs to happen once to the rootCmd.
|
|
|
|
func Execute() {
|
|
|
|
if err := RootCmd.Execute(); err != nil {
|
2019-09-05 20:12:46 +02:00
|
|
|
// workaround for Fatal (os.Exit(1))
|
|
|
|
//TODO https://github.com/stretchr/testify/issues/813
|
|
|
|
log.Panic(err)
|
2019-05-31 10:07:40 +02:00
|
|
|
}
|
|
|
|
}
|