Skip to content

Commit 3f5a7c6

Browse files
committed
fix: bump cmd module to allow anonymous struct pointers to propagate args
Fixes a regression caused by switching from an embedded config pointer to a struct value. Signed-off-by: Nick Hale <[email protected]>
1 parent 6ae4724 commit 3f5a7c6

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/AlecAivazis/survey/v2 v2.3.7
77
github.com/BurntSushi/locker v0.0.0-20171006230638-a6e239ea1c69
88
github.com/acorn-io/broadcaster v0.0.0-20240105011354-bfadd4a7b45d
9-
github.com/acorn-io/cmd v0.0.0-20240404013709-34f690bde37b
9+
github.com/acorn-io/cmd v0.0.0-20240625164600-6c594fbd857e
1010
github.com/adrg/xdg v0.4.0
1111
github.com/chzyer/readline v1.5.1
1212
github.com/docker/cli v26.0.0+incompatible

go.sum

+4-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2 h1:+vx7roKuyA63n
4242
github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2/go.mod h1:HBCaDeC1lPdgDeDbhX8XFpy1jqjK0IBG8W5K+xYqA0w=
4343
github.com/acorn-io/broadcaster v0.0.0-20240105011354-bfadd4a7b45d h1:hfpNQkJ4I2b8+DbMr8m97gG67ku0uPsMzUfskVu3cHU=
4444
github.com/acorn-io/broadcaster v0.0.0-20240105011354-bfadd4a7b45d/go.mod h1:WF6FYrEqW0+ZtY5OKb21JhSL0aeL5VJoVrm+u0d4gOE=
45-
github.com/acorn-io/cmd v0.0.0-20240404013709-34f690bde37b h1:VzGEGrJn54UcsEvTqcpJj9USv7vc6TIxQGZVS0Ff304=
46-
github.com/acorn-io/cmd v0.0.0-20240404013709-34f690bde37b/go.mod h1:9jrYuzTJCv6QgGKl5gbhKqhG3kke31PmUE2KruBHzpg=
45+
github.com/acorn-io/cmd v0.0.0-20240625164600-6c594fbd857e h1:sM7R4T85b+dYY/FA4rwoTKw/UcRhMYiAgQLNxiuPDpA=
46+
github.com/acorn-io/cmd v0.0.0-20240625164600-6c594fbd857e/go.mod h1:9jrYuzTJCv6QgGKl5gbhKqhG3kke31PmUE2KruBHzpg=
4747
github.com/adrg/xdg v0.4.0 h1:RzRqFcjH4nE5C6oTAxhBtoE2IRyjBSa62SCbyPidvls=
4848
github.com/adrg/xdg v0.4.0/go.mod h1:N6ag73EX4wyxeaoeHctc1mas01KZgsj5tYiAIwqJE/E=
4949
github.com/alecthomas/assert/v2 v2.2.1 h1:XivOgYcduV98QCahG8T5XTezV5bylXe+lBxLG2K2ink=
@@ -321,6 +321,8 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/
321321
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
322322
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
323323
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
324+
github.com/thedadams/cmd v0.0.0-20240625162038-610788253c82 h1:Pp8J2dhZwcTCzpG7sHQ8xAgqPBuNXUCt3tfoX+rOW98=
325+
github.com/thedadams/cmd v0.0.0-20240625162038-610788253c82/go.mod h1:9jrYuzTJCv6QgGKl5gbhKqhG3kke31PmUE2KruBHzpg=
324326
github.com/therootcompany/xz v1.0.1 h1:CmOtsn1CbtmyYiusbfmhmkpAAETj0wBIH6kCYaX+xzw=
325327
github.com/therootcompany/xz v1.0.1/go.mod h1:3K3UH1yCKgBneZYhuQUvJ9HPD19UEXEI0BWbMn8qNMY=
326328
github.com/tidwall/gjson v1.17.1 h1:wlYEnwqAHgzmhNUFfw7Xalt2JzQvsMx2Se4PcoFCT/U=

pkg/cli/gptscript.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func New() *cobra.Command {
8484
&Parse{},
8585
&Fmt{},
8686
&SDKServer{
87-
GPTScript: *root,
87+
GPTScript: root,
8888
},
8989
)
9090

pkg/cli/sdk_server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
)
1111

1212
type SDKServer struct {
13-
GPTScript
13+
*GPTScript
1414
}
1515

1616
func (c *SDKServer) Customize(cmd *cobra.Command) {

0 commit comments

Comments
 (0)