Skip to content

Commit e0b03fc

Browse files
chore: make sys.sdkserver change backwards compatible
1 parent 096606d commit e0b03fc

File tree

4 files changed

+2
-11
lines changed

4 files changed

+2
-11
lines changed

pkg/cli/gptscript.go

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ type GPTScript struct {
5757
Assemble bool `usage:"Assemble tool to a single artifact, saved to --output" hidden:"true" local:"true"`
5858
ListModels bool `usage:"List the models available and exit" local:"true"`
5959
ListTools bool `usage:"List built-in tools and exit" local:"true"`
60+
ListenAddress string `usage:"Server listen address" default:"127.0.0.1:0" hidden:"true"`
6061
Chdir string `usage:"Change current working directory" short:"C"`
6162
Daemon bool `usage:"Run tool as a daemon" local:"true" hidden:"true"`
6263
Ports string `usage:"The port range to use for ephemeral daemon ports (ex: 11000-12000)" hidden:"true"`

pkg/cli/sdk_server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ import (
1111

1212
type SDKServer struct {
1313
*GPTScript
14-
ListenAddress string `usage:"Server listen address" default:"127.0.0.1:0" local:"true"`
1514
}
1615

1716
func (c *SDKServer) Customize(cmd *cobra.Command) {
1817
cmd.Use = "sys.sdkserver"
1918
cmd.Args = cobra.NoArgs
19+
cmd.Aliases = []string{"sdkserver"}
2020
cmd.Hidden = true
2121
}
2222

pkg/system/currentbin.go

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//go:build !linux
2-
31
package system
42

53
import (

pkg/system/currentbin_linux.go

-8
This file was deleted.

0 commit comments

Comments
 (0)