diff options
author | Teddy Wing | 2017-06-03 11:22:08 +0200 |
---|---|---|
committer | Teddy Wing | 2017-06-03 11:22:08 +0200 |
commit | e99c7b69e0981d4a7b87310cd811b90a2ffbe12f (patch) | |
tree | b3e183c548bb8affb78724cefad8ad539c94c3d5 /main.go | |
parent | 1a1d9c3c671d33f7013c94564007e2c5b33cea47 (diff) | |
download | timetasker-e99c7b69e0981d4a7b87310cd811b90a2ffbe12f.tar.bz2 |
Comment out all the things!
Half get rid of a lot of code. I don't like and don't want to use our
old field types. Get rid of them and the code in 'http.go' that depends
on them.
Also get rid of the time entry submission code in 'main.go' as that's
going to be redone.
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 44 |
1 files changed, 22 insertions, 22 deletions
@@ -1,12 +1,12 @@ package main import ( - "fmt" - "io/ioutil" + // "fmt" + // "io/ioutil" "log" - "os" + // "os" - "github.com/teddywing/timetasker/timetask" + // "github.com/teddywing/timetasker/timetask" "github.com/BurntSushi/toml" ) @@ -24,24 +24,24 @@ var config Config func main() { loadConfig() - if len(os.Args) == 1 { - fmt.Println("Not enough arguments") - os.Exit(1) - } - - file_path := os.Args[len(os.Args)-1] - file, err := ioutil.ReadFile(file_path) - if err != nil { - log.Println(err) - } - - time_entries := []timetask.TimeEntry{} - err = yaml.Unmarshal(file, &time_entries) - if err != nil { - log.Println(err) - } - - log.Printf("%+v", time_entries) + // if len(os.Args) == 1 { + // fmt.Println("Not enough arguments") + // os.Exit(1) + // } + // + // file_path := os.Args[len(os.Args)-1] + // file, err := ioutil.ReadFile(file_path) + // if err != nil { + // log.Println(err) + // } + + // time_entries := []timetask.TimeEntry{} + // err = yaml.Unmarshal(file, &time_entries) + // if err != nil { + // log.Println(err) + // } + // + // log.Printf("%+v", time_entries) // timetask.SubmitTimeEntries(config.Fields, time_entries) |