diff options
author | Teddy Wing | 2017-06-03 15:37:23 +0200 |
---|---|---|
committer | Teddy Wing | 2017-06-03 15:37:23 +0200 |
commit | 573df442661c9d0794688e1da98f1ef966ef6265 (patch) | |
tree | 987d60a38c57efae6f1e36a71742852f2facf1ba /main.go | |
parent | e439f382fd4bfed4cb547ca59fc0d679658457d4 (diff) | |
download | timetasker-573df442661c9d0794688e1da98f1ef966ef6265.tar.bz2 |
main.go: Remove old commented code
This code was used for the old multiple time entry submission version of
this program. Remove it now that the program only submits single time
entries.
We'll have similar argument handling code for user data, and the time
entry submission code is already present here.
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 23 |
1 files changed, 0 insertions, 23 deletions
@@ -53,29 +53,6 @@ func main() { defer resp.Body.Close() body, err = ioutil.ReadAll(resp.Body) log.Println(string(body)) - - // 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) - - // timetask.GenerateWeeklyTimesheet(os.Stdout, config.Defaults) } func loadConfig() { |