summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk/go/command.go
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sdk/go/command.go')
-rw-r--r--packages/sdk/go/command.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/sdk/go/command.go b/packages/sdk/go/command.go
index 44e3beb1c..2f64489ad 100644
--- a/packages/sdk/go/command.go
+++ b/packages/sdk/go/command.go
@@ -6,6 +6,7 @@ import (
"context"
"net/http"
"net/url"
+ "slices"
"github.com/sst/opencode-sdk-go/internal/apijson"
"github.com/sst/opencode-sdk-go/internal/apiquery"
@@ -35,7 +36,7 @@ func NewCommandService(opts ...option.RequestOption) (r *CommandService) {
// List all commands
func (r *CommandService) List(ctx context.Context, query CommandListParams, opts ...option.RequestOption) (res *[]Command, err error) {
- opts = append(r.Options[:], opts...)
+ opts = slices.Concat(r.Options, opts)
path := "command"
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &res, opts...)
return