Changed output
This commit is contained in:
parent
5181dbdf1a
commit
2ed8a411e9
1 changed files with 13 additions and 3 deletions
16
z/track.go
16
z/track.go
|
@ -22,13 +22,23 @@ var trackCmd = &cobra.Command{
|
||||||
}
|
}
|
||||||
|
|
||||||
newEntry, err := NewEntry("", begin, finish, project, task, user)
|
newEntry, err := NewEntry("", begin, finish, project, task, user)
|
||||||
database.AddEntry(newEntry, true)
|
|
||||||
entries, err := database.ListEntries()
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("%+v", entries)
|
entryId, err := database.AddEntry(user, newEntry, true)
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
|
// entries, err := database.ListEntries()
|
||||||
|
// if err != nil {
|
||||||
|
// log.Fatal(err)
|
||||||
|
// }
|
||||||
|
// fmt.Printf("%+v", entries)
|
||||||
|
|
||||||
|
log.Printf("Added new entry with ID %s!\n", entryId)
|
||||||
|
return
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue