diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-22 22:21:44 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-22 22:21:44 +0200 |
| commit | f6ce62d4e5cefc4a7761bbb86f329ad08ba57570 (patch) | |
| tree | 83d697fece9df55be204b1ed646cea3d6075f394 /internal/askcli/command_delete_test.go | |
| parent | 641e5f723215960713ad183d6d99619b64d69467 (diff) | |
ask: fix CLI commands to use correct Taskwarrior argument formatsv0.25.2
- handlePriority: use 'uuid:<uuid> modify priority:<level>' instead of 'priority <uuid> <level>'
- handleTag: use 'uuid:<uuid> modify +/-tag' instead of 'tag <uuid> +/-tag'
- handleDelete: use 'uuid:<uuid> delete' and pass stdin for confirmation
- handleDenotate: use 'uuid:<uuid> denotate <pattern>' instead of 'denotate <uuid> <pattern>'
- Add integration tests for all ask CLI subcommands
- Update unit tests to match new command argument formats
- createTask now uses task info to get UUID instead of export parsing
- parseTaskInfoText fixed to split tags by ', ' instead of whitespace
Diffstat (limited to 'internal/askcli/command_delete_test.go')
| -rw-r--r-- | internal/askcli/command_delete_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/askcli/command_delete_test.go b/internal/askcli/command_delete_test.go index e07205f..9cd2e94 100644 --- a/internal/askcli/command_delete_test.go +++ b/internal/askcli/command_delete_test.go @@ -86,7 +86,7 @@ func TestHandleDelete_PassesCorrectArgs(t *testing.T) { }}) var stdout, stderr bytes.Buffer d.Dispatch(context.Background(), []string{"delete", "my-uuid"}, &bytes.Buffer{}, &stdout, &stderr) - if len(capturedArgs) != 2 || capturedArgs[0] != "delete" || capturedArgs[1] != "my-uuid" { - t.Fatalf("capturedArgs = %v, want [delete, my-uuid]", capturedArgs) + if len(capturedArgs) != 2 || capturedArgs[0] != "uuid:my-uuid" || capturedArgs[1] != "delete" { + t.Fatalf("capturedArgs = %v, want [uuid:my-uuid, delete]", capturedArgs) } } |
