2020-10-11 00:58:14 +00:00
|
|
|
package z
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
"os"
|
|
|
|
)
|
|
|
|
|
2020-10-11 20:14:57 +00:00
|
|
|
var database *Database
|
|
|
|
|
|
|
|
var begin string
|
|
|
|
var finish string
|
|
|
|
var project string
|
|
|
|
var task string
|
|
|
|
|
|
|
|
var force bool
|
2020-10-11 00:58:14 +00:00
|
|
|
|
|
|
|
var rootCmd = &cobra.Command{
|
|
|
|
Use: "zeit",
|
|
|
|
Short: "Command line Zeiterfassung",
|
|
|
|
Long: `A command line time tracker.`,
|
|
|
|
}
|
|
|
|
|
|
|
|
func Execute() {
|
|
|
|
if err := rootCmd.Execute(); err != nil {
|
2020-10-15 20:38:25 +00:00
|
|
|
fmt.Printf("△ %+v\n", err)
|
|
|
|
os.Exit(-1)
|
2020-10-11 00:58:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
cobra.OnInitialize(initConfig)
|
|
|
|
}
|
|
|
|
|
|
|
|
func initConfig() {
|
|
|
|
}
|