From 5181dbdf1ab946990cb010859683357f8dab5c8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9E=E3=83=AA=E3=82=A6=E3=82=B9?= Date: Sun, 11 Oct 2020 21:14:57 +0100 Subject: [PATCH] Moved variables --- z/root.go | 9 ++++++++- z/track.go | 9 --------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/z/root.go b/z/root.go index 952f399..f1c3916 100644 --- a/z/root.go +++ b/z/root.go @@ -6,7 +6,14 @@ import ( "os" ) -var developer string +var database *Database + +var begin string +var finish string +var project string +var task string + +var force bool var rootCmd = &cobra.Command{ Use: "zeit", diff --git a/z/track.go b/z/track.go index 1d3d1b2..53216db 100644 --- a/z/track.go +++ b/z/track.go @@ -1,19 +1,10 @@ package z import ( - "fmt" "log" "github.com/spf13/cobra" ) -var database *Database -var begin string -var finish string -var project string -var task string - -var force bool - var trackCmd = &cobra.Command{ Use: "track", Short: "Tracking time",