diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-27 11:31:15 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-27 11:31:15 +0200 |
| commit | 56e9f980e52a53197ace71acdb277ba0e0368916 (patch) | |
| tree | e608e2ad400087278a8821559d15536e3e0407dd /internal/askcli/command_write.go | |
| parent | 60ad41f9b49b3e93bc513e0035323d1ed9e81faf (diff) | |
Explicitly ignore askcli write errors
Diffstat (limited to 'internal/askcli/command_write.go')
| -rw-r--r-- | internal/askcli/command_write.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/internal/askcli/command_write.go b/internal/askcli/command_write.go index 023251c..d8dbf5b 100644 --- a/internal/askcli/command_write.go +++ b/internal/askcli/command_write.go @@ -25,13 +25,13 @@ func (d *Dispatcher) runSingleTaskCommand( return code, err } - io.WriteString(stdout, FormatSuccess(displayResolvedTaskID(resolved))) + _, _ = io.WriteString(stdout, FormatSuccess(displayResolvedTaskID(resolved))) return 0, nil } func (d *Dispatcher) handleDenotate(ctx context.Context, args []string, stdout, stderr io.Writer) (int, error) { if len(args) < 3 { - io.WriteString(stderr, "error: ask denotate requires an ID or UUID and text argument\n") + _, _ = io.WriteString(stderr, "error: ask denotate requires an ID or UUID and text argument\n") return 1, nil } text := args[2] @@ -42,7 +42,7 @@ func (d *Dispatcher) handleDenotate(ctx context.Context, args []string, stdout, func (d *Dispatcher) handleModify(ctx context.Context, args []string, stdout, stderr io.Writer) (int, error) { if len(args) < 3 { - io.WriteString(stderr, "error: ask modify requires an ID or UUID and modification args\n") + _, _ = io.WriteString(stderr, "error: ask modify requires an ID or UUID and modification args\n") return 1, nil } modArgs := args[2:] @@ -53,7 +53,7 @@ func (d *Dispatcher) handleModify(ctx context.Context, args []string, stdout, st func (d *Dispatcher) handleAnnotate(ctx context.Context, args []string, stdout, stderr io.Writer) (int, error) { if len(args) < 3 { - io.WriteString(stderr, "error: ask annotate requires an ID or UUID and note argument\n") + _, _ = io.WriteString(stderr, "error: ask annotate requires an ID or UUID and note argument\n") return 1, nil } note := strings.Join(args[2:], " ") @@ -64,7 +64,7 @@ func (d *Dispatcher) handleAnnotate(ctx context.Context, args []string, stdout, func (d *Dispatcher) handleStart(ctx context.Context, args []string, stdout, stderr io.Writer) (int, error) { if len(args) < 2 { - io.WriteString(stderr, "error: ask start requires an ID or UUID argument\n") + _, _ = io.WriteString(stderr, "error: ask start requires an ID or UUID argument\n") return 1, nil } return d.runSingleTaskCommand(ctx, args[1], stdout, stderr, func(resolved resolvedTaskSelector) []string { @@ -76,7 +76,7 @@ func (d *Dispatcher) handleStart(ctx context.Context, args []string, stdout, std func (d *Dispatcher) handleStop(ctx context.Context, args []string, stdout, stderr io.Writer) (int, error) { if len(args) < 2 { - io.WriteString(stderr, "error: ask stop requires an ID or UUID argument\n") + _, _ = io.WriteString(stderr, "error: ask stop requires an ID or UUID argument\n") return 1, nil } return d.runSingleTaskCommand(ctx, args[1], stdout, stderr, func(resolved resolvedTaskSelector) []string { @@ -86,7 +86,7 @@ func (d *Dispatcher) handleStop(ctx context.Context, args []string, stdout, stde func (d *Dispatcher) handleDone(ctx context.Context, args []string, stdout, stderr io.Writer) (int, error) { if len(args) < 2 { - io.WriteString(stderr, "error: ask done requires an ID or UUID argument\n") + _, _ = io.WriteString(stderr, "error: ask done requires an ID or UUID argument\n") return 1, nil } return d.runSingleTaskCommand(ctx, args[1], stdout, stderr, func(resolved resolvedTaskSelector) []string { @@ -96,7 +96,7 @@ func (d *Dispatcher) handleDone(ctx context.Context, args []string, stdout, stde func (d *Dispatcher) handlePriority(ctx context.Context, args []string, stdout, stderr io.Writer) (int, error) { if len(args) < 3 { - io.WriteString(stderr, "error: ask priority requires an ID or UUID and priority (H/M/L)\n") + _, _ = io.WriteString(stderr, "error: ask priority requires an ID or UUID and priority (H/M/L)\n") return 1, nil } priority := args[2] @@ -107,7 +107,7 @@ func (d *Dispatcher) handlePriority(ctx context.Context, args []string, stdout, func (d *Dispatcher) handleTag(ctx context.Context, args []string, stdout, stderr io.Writer) (int, error) { if len(args) < 3 { - io.WriteString(stderr, "error: ask tag requires an ID or UUID and +/-tag\n") + _, _ = io.WriteString(stderr, "error: ask tag requires an ID or UUID and +/-tag\n") return 1, nil } tag := args[2] |
