aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorTeddy Wing2017-06-03 15:37:23 +0200
committerTeddy Wing2017-06-03 15:37:23 +0200
commit573df442661c9d0794688e1da98f1ef966ef6265 (patch)
tree987d60a38c57efae6f1e36a71742852f2facf1ba /main.go
parente439f382fd4bfed4cb547ca59fc0d679658457d4 (diff)
downloadtimetasker-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.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/main.go b/main.go
index 2974434..41245db 100644
--- a/main.go
+++ b/main.go
@@ -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() {