diff options
| -rw-r--r-- | main.go | 4 | ||||
| -rw-r--r-- | timetask/fields.go | 10 | 
2 files changed, 12 insertions, 2 deletions
| @@ -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 | 
