From d3586ad2b2b140435055c349393154ae7cfffaea Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 27 Mar 2026 07:18:04 +0200 Subject: task 3a4c0f14-16ad-487f-af7c-bd99ee6464e6: use pointer Dispatcher receivers --- internal/askcli/command_dep.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/askcli/command_dep.go') 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 \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 \n") return 1, nil -- cgit v1.2.3