Add support for silent mode.

Fixes #13 partially.

Only missing STDIN reading as a special file.
This commit is contained in:
Olivier Tremblay 2017-10-04 19:45:42 -04:00 committed by Olivier Tremblay
parent edc5120921
commit 7f8947b970
No known key found for this signature in database
GPG key ID: D1C73ACB855E3A6D
9 changed files with 188 additions and 125 deletions

1
jkl.go
View file

@ -239,6 +239,7 @@ func DoTransition(taskKey string, transitionName string) error {
}
func LogWork(taskKey string, workAmount string) error {
bootHttpClient()
payload, err := serializePayload(map[string]interface{}{"timeSpent": workAmount})
resp, err := httpClient.Post("api/2/issue/"+taskKey+"/worklog", payload)
if err != nil {