diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-27 07:18:04 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-27 07:18:04 +0200 |
| commit | d3586ad2b2b140435055c349393154ae7cfffaea (patch) | |
| tree | de03bb45cb75b138d71f54b105e695672b7d802c /internal/askcli/command_dep.go | |
| parent | f146fbc4cc25bcdeab19a0c1055c839776cebff4 (diff) | |
task 3a4c0f14-16ad-487f-af7c-bd99ee6464e6: use pointer Dispatcher receivers
Diffstat (limited to 'internal/askcli/command_dep.go')
| -rw-r--r-- | internal/askcli/command_dep.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/askcli/command_dep.go b/internal/askcli/command_dep.go index adfb232..83a4803 100644 --- a/internal/askcli/command_dep.go +++ b/internal/askcli/command_dep.go @@ -8,7 +8,7 @@ import ( "strings" ) -func (d Dispatcher) handleDep(ctx context.Context, args []string, stdout, stderr io.Writer) (int, error) { +func (d *Dispatcher) handleDep(ctx context.Context, args []string, stdout, stderr io.Writer) (int, error) { if len(args) < 2 { io.WriteString(stderr, "error: ask dep requires an operation (add/rm/list) and arguments\n") return 1, nil @@ -25,7 +25,7 @@ func (d Dispatcher) handleDep(ctx context.Context, args []string, stdout, stderr } } -func (d Dispatcher) handleDepAddRm(ctx context.Context, args []string, stdout, stderr io.Writer) (int, error) { +func (d *Dispatcher) handleDepAddRm(ctx context.Context, args []string, stdout, stderr io.Writer) (int, error) { if len(args) < 4 { io.WriteString(stderr, "error: ask dep add/rm requires <id|uuid> <dep-id|dep-uuid>\n") return 1, nil @@ -57,7 +57,7 @@ func (d Dispatcher) handleDepAddRm(ctx context.Context, args []string, stdout, s return 0, nil } -func (d Dispatcher) handleDepList(ctx context.Context, args []string, stdout, stderr io.Writer) (int, error) { +func (d *Dispatcher) handleDepList(ctx context.Context, args []string, stdout, stderr io.Writer) (int, error) { if len(args) < 3 { io.WriteString(stderr, "error: ask dep list requires <id|uuid>\n") return 1, nil |
