aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.go4
-rw-r--r--timetask/fields.go10
2 files changed, 12 insertions, 2 deletions
diff --git a/main.go b/main.go
index b31a4f0..ccdcaed 100644
--- a/main.go
+++ b/main.go
@@ -6,7 +6,7 @@ import (
"log"
// "os"
- // "github.com/teddywing/timetasker/timetask"
+ "github.com/teddywing/timetasker/timetask"
"github.com/BurntSushi/toml"
)
@@ -16,7 +16,7 @@ type Config struct {
Username string
PasswordCmd string
}
- Projects map[string]interface{}
+ Projects map[string]timetask.Project
}
var config Config
diff --git a/timetask/fields.go b/timetask/fields.go
index f3bb27d..da2b37d 100644
--- a/timetask/fields.go
+++ b/timetask/fields.go
@@ -16,6 +16,16 @@ package timetask
// WorkTypes []WorkType `yaml:"work_types"`
// }
+type Project struct {
+ Client int
+ Project int
+ Module int
+ Task int
+ WorkType int
+ Time int
+ Billable bool
+}
+
// type Module struct {
// ID int
// Name string