diff options
author | Teddy Wing | 2017-06-03 12:16:33 +0200 |
---|---|---|
committer | Teddy Wing | 2017-06-03 12:20:42 +0200 |
commit | 1576d4111d412a1c501b6a8630c4d559302b9b21 (patch) | |
tree | b3b861548348f87efc4dd34e37753e7ce2a91110 /main.go | |
parent | 44cb0e11566c7416c8859dac18baf24a0337ecce (diff) | |
download | timetasker-1576d4111d412a1c501b6a8630c4d559302b9b21.tar.bz2 |
main.go: Add `Profile` to `Config`
Require the config.toml file to come with a `[profile]` hash. This
allows us to get the "person_id" for correct submission to TimeTask.
Additionally, add a TOML tag to `PersonID` in `Profile` to allow it to
be decoded.
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -16,6 +16,7 @@ type Config struct { Username string PasswordCmd string } + Profile timetask.Profile Projects map[string]timetask.Project } |