Add support for silent mode.
Fixes #13 partially. Only missing STDIN reading as a special file.
This commit is contained in:
parent
edc5120921
commit
7f8947b970
9 changed files with 188 additions and 125 deletions
1
jkl.go
1
jkl.go
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue