diff options
Diffstat (limited to 'internal/askcli/command_delete.go')
| -rw-r--r-- | internal/askcli/command_delete.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/askcli/command_delete.go b/internal/askcli/command_delete.go index 1da0498..84764dd 100644 --- a/internal/askcli/command_delete.go +++ b/internal/askcli/command_delete.go @@ -6,7 +6,7 @@ import ( "io" ) -func (d Dispatcher) handleDelete(ctx context.Context, args []string, stdout, stderr io.Writer) (int, error) { +func (d Dispatcher) handleDelete(ctx context.Context, args []string, stdin io.Reader, stdout, stderr io.Writer) (int, error) { if len(args) < 2 { io.WriteString(stderr, "error: ask delete requires a UUID argument\n") return 1, nil @@ -17,7 +17,7 @@ func (d Dispatcher) handleDelete(ctx context.Context, args []string, stdout, std return 1, nil } var outBuf bytes.Buffer - code, err := d.runner.Run(ctx, []string{"delete", uuid}, nil, &outBuf, io.Discard) + code, err := d.runner.Run(ctx, []string{"uuid:" + uuid, "delete"}, stdin, &outBuf, io.Discard) if code != 0 { return code, err } |
