Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
9b81964
fix: improved workflow for developing on branches
stainless-app[bot] Mar 16, 2026
bb63352
fix: better support passing client args in any position
stainless-app[bot] Mar 16, 2026
02e3fa0
fix: no longer require an API key when building on production repos
stainless-app[bot] Mar 16, 2026
e8ef06a
chore(internal): tweak CI branches
stainless-app[bot] Mar 16, 2026
522880b
fix: avoid reading from stdin unless request body is form encoded or …
stainless-app[bot] Mar 17, 2026
6e60912
feat(api): stable beta
stainless-app[bot] Mar 18, 2026
52f718e
fix(api): update flags
stainless-app[bot] Mar 18, 2026
2c06cc2
codegen metadata
stainless-app[bot] Mar 18, 2026
5a65fdf
codegen metadata
stainless-app[bot] Mar 18, 2026
4e5604b
codegen metadata
stainless-app[bot] Mar 18, 2026
a1bc861
codegen metadata
stainless-app[bot] Mar 18, 2026
74a06aa
codegen metadata
stainless-app[bot] Mar 18, 2026
abb8149
codegen metadata
stainless-app[bot] Mar 18, 2026
80069fa
feat(ssh): add ephemeral certificate SSH helper
windsornguyen Mar 18, 2026
ce03f86
fix(ssh): add ephemeral certificate SSH helper (#2)
windsornguyen Mar 18, 2026
d2b4387
Merge remote-tracking branch 'origin/main' into next
stainless-app[bot] Mar 18, 2026
75391d4
fix(ssh): align types with dedalus-go SDK (#4)
windsornguyen Mar 18, 2026
69e4687
fix: improve linking behavior when developing on a branch not in the …
stainless-app[bot] Mar 18, 2026
654e2de
chore(api): update homebrew tap and code samples
stainless-app[bot] Mar 18, 2026
dbb9330
codegen metadata
stainless-app[bot] Mar 18, 2026
1ec3852
Merge remote-tracking branch 'origin/main' into next
stainless-app[bot] Mar 18, 2026
2059194
chore: add curl install script (#6)
windsornguyen Mar 18, 2026
a5a9877
refactor(tests): switch from prism to steady
stainless-app[bot] Mar 19, 2026
a0028a5
chore(tests): bump steady to v0.19.4
stainless-app[bot] Mar 20, 2026
47e0da2
fix(api): add stream-status to workspaces, remove ssh, migrate to steady
stainless-app[bot] Mar 20, 2026
c1794a0
feat: add default description for enum CLI flags without an explicit …
stainless-app[bot] Mar 20, 2026
938cce6
chore(tests): bump steady to v0.19.5
stainless-app[bot] Mar 20, 2026
596fc86
chore(internal): update gitignore
stainless-app[bot] Mar 23, 2026
4049dfc
chore(tests): bump steady to v0.19.6
stainless-app[bot] Mar 23, 2026
2407337
fix: cli no longer hangs when stdin is attached to a pipe with empty …
stainless-app[bot] Mar 23, 2026
5fd4cc8
Merge remote-tracking branch 'origin/main' into next
stainless-app[bot] Mar 24, 2026
40bf2f7
chore(internal): codegen related update
stainless-app[bot] Mar 25, 2026
421e8ad
chore(ci): skip lint on metadata-only changes
stainless-app[bot] Mar 24, 2026
b60170b
chore(tests): bump steady to v0.19.7
stainless-app[bot] Mar 24, 2026
6c435f3
fix(api): remove ssh command, rename stream-status to watch, drop wak…
stainless-app[bot] Mar 25, 2026
982a108
fix(ssh): remove deprecated wake_if_needed field, tidy deps
windsornguyen Mar 25, 2026
df9c7ac
release: 0.0.3
stainless-app[bot] Mar 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
timeout-minutes: 10
name: lint
runs-on: ${{ github.repository == 'stainless-sdks/dedalus-cli' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')

steps:
- uses: actions/checkout@v6
Expand All @@ -49,7 +49,7 @@ jobs:
contents: read
id-token: write
runs-on: ${{ github.repository == 'stainless-sdks/dedalus-cli' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
steps:
- uses: actions/checkout@v6

Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.0.2"
".": "0.0.3"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 27
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/dedalus-labs%2Fdedalus-a2b38be63dcddaea1a314843f9685b8e26c1f584b1696712f6a9668014afc0a7.yml
openapi_spec_hash: ba6a5b38ed5fa9d49b03b154e3b99b53
config_hash: a71704446fb82d83c7357258c182bdb5
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/dedalus-labs%2Fdedalus-7a281169c5f380aa29376e393f8c5f87d35998fecc9e1210835f1165c0bc467f.yml
openapi_spec_hash: da9a43b37a46e0d22a823085861cdd82
config_hash: 7fcee0473099fe6d9a119f37c80e53d7
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## 0.0.3 (2026-03-25)

Full Changelog: [v0.0.2...v0.0.3](https://github.com/dedalus-labs/dedalus-cli/compare/v0.0.2...v0.0.3)

### Bug Fixes

* **api:** remove ssh command, rename stream-status to watch, drop wake-if-needed ([6c435f3](https://github.com/dedalus-labs/dedalus-cli/commit/6c435f3110f58e2b00f88a4618af66e19f4655ea))
* **ssh:** remove deprecated wake_if_needed field, tidy deps ([982a108](https://github.com/dedalus-labs/dedalus-cli/commit/982a108033a4bee055187538c7f660db0246d7ef))


### Chores

* **ci:** skip lint on metadata-only changes ([421e8ad](https://github.com/dedalus-labs/dedalus-cli/commit/421e8ad850603793988df632dbb69db695894d56))
* **internal:** codegen related update ([40bf2f7](https://github.com/dedalus-labs/dedalus-cli/commit/40bf2f75287c9661956079d19d99d9df152a6260))
* **tests:** bump steady to v0.19.7 ([b60170b](https://github.com/dedalus-labs/dedalus-cli/commit/b60170b9f684e1ca711164495ebc302228336954))

## 0.0.2 (2026-03-23)

Full Changelog: [v0.0.2...v0.0.2](https://github.com/dedalus-labs/dedalus-cli/compare/v0.0.2...v0.0.2)
Expand Down
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/charmbracelet/bubbletea v1.3.6
github.com/charmbracelet/lipgloss v1.1.0
github.com/charmbracelet/x/term v0.2.1
github.com/dedalus-labs/dedalus-go v0.0.1
github.com/dedalus-labs/dedalus-go v0.0.4
github.com/goccy/go-yaml v1.18.0
github.com/itchyny/json2yaml v0.1.4
github.com/muesli/reflow v0.3.0
Expand All @@ -16,6 +16,7 @@ require (
github.com/tidwall/pretty v1.2.1
github.com/urfave/cli-docs/v3 v3.0.0-alpha6
github.com/urfave/cli/v3 v3.3.2
golang.org/x/crypto v0.49.0
golang.org/x/sys v0.42.0
)

Expand All @@ -26,7 +27,6 @@ require (
github.com/charmbracelet/x/cellbuf v0.0.13-0.20250311204145-2c3ea96c31dd // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dedalus-labs/dedalus-go v0.0.1 // indirect
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
Expand All @@ -42,7 +42,6 @@ require (
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/sjson v1.2.5 // indirect
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
golang.org/x/crypto v0.49.0 // indirect
golang.org/x/sync v0.20.0 // indirect
golang.org/x/text v0.35.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down
12 changes: 4 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHH
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/dedalus-labs/dedalus-go v0.0.1 h1:0p2dLQX9VEVbaJcx4rhjW+MZdb8mN7I3izGs65D2Tpc=
github.com/dedalus-labs/dedalus-go v0.0.1/go.mod h1:tcwRinHcyjTtLhXOiHaCPEHmm9tPwsAvagi5qiXaxDs=
github.com/dedalus-labs/dedalus-go v0.0.4 h1:PSwNuLtguEzFBUXf0WqBDbGyXrTa8HXSjtaxsScU7xc=
github.com/dedalus-labs/dedalus-go v0.0.4/go.mod h1:tcwRinHcyjTtLhXOiHaCPEHmm9tPwsAvagi5qiXaxDs=
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f h1:Y/CXytFA4m6baUTXGLOoWe4PQhGxaX0KpnayAqC48p4=
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f/go.mod h1:vw97MGsxSvLiUE2X8qFplwetxpGLQrlU1Q9AUEIzCaM=
github.com/goccy/go-yaml v1.18.0 h1:8W7wMFS12Pcas7KU+VVkaiCng+kG8QiFeFwzFb+rwuw=
Expand Down Expand Up @@ -79,18 +79,14 @@ golang.org/x/crypto v0.49.0 h1:+Ng2ULVvLHnJ/ZFEq4KdcDd/cfjrrjjNSXNzxg0Y4U4=
golang.org/x/crypto v0.49.0/go.mod h1:ErX4dUh2UM+CFYiXZRTcMpEcN8b/1gxEuv3nODoYtCA=
golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561 h1:MDc5xs78ZrZr3HMQugiXOAkSZtfTpbJLDr/lwfgO53E=
golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE=
golang.org/x/sync v0.15.0 h1:KWH3jNZsfyT6xfAfKiz6MRNmd46ByHDYaZ7KSkCtdW8=
golang.org/x/sync v0.15.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
golang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4=
golang.org/x/sync v0.20.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=
golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc=
golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
golang.org/x/sys v0.42.0 h1:omrd2nAlyT5ESRdCLYdm3+fMfNFE/+Rf4bDIQImRJeo=
golang.org/x/sys v0.42.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
golang.org/x/text v0.3.8 h1:nAL+RVCQ9uMn3vJZbV+MRnydTJFPf8qqY42YiA6MrqY=
golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
golang.org/x/term v0.41.0 h1:QCgPso/Q3RTJx2Th4bDLqML4W6iJiaXFq2/ftQF13YU=
golang.org/x/term v0.41.0/go.mod h1:3pfBgksrReYfZ5lvYM0kSO0LIkAl4Yl2bXOkKP7Ec2A=
golang.org/x/text v0.35.0 h1:JOVx6vVDFokkpaq1AEptVzLTpDe9KGpj5tR4/X+ybL8=
golang.org/x/text v0.35.0/go.mod h1:khi/HExzZJ2pGnjenulevKNX1W67CUy0AsXcNubPGCA=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func init() {
&workspacesUpdate,
&workspacesList,
&workspacesDelete,
&workspacesStreamStatus,
&workspacesWatch,
},
},
{
Expand Down
14 changes: 3 additions & 11 deletions pkg/cmd/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"time"

"github.com/dedalus-labs/dedalus-go"
"github.com/dedalus-labs/dedalus-go/packages/param"
"github.com/urfave/cli/v3"
"golang.org/x/crypto/ssh"
)
Expand All @@ -41,12 +40,7 @@ func init() {
UsageText: "dedalus ssh <workspace_id>",
Category: "WORKSPACE",
Suggest: true,
Flags: []cli.Flag{
&cli.BoolFlag{
Name: "wake-if-needed",
Usage: "Wake the workspace if it is sleeping",
},
},
Flags: []cli.Flag{},
Action: handleSSH,
HideHelpCommand: true,
})
Expand Down Expand Up @@ -80,7 +74,7 @@ func handleSSH(ctx context.Context, cmd *cli.Command) error {
return err
}

sess, err := awaitSSHSession(ctx, &client, wsID, pubKey, cmd.Bool("wake-if-needed"))
sess, err := awaitSSHSession(ctx, &client, wsID, pubKey)
if err != nil {
return err
}
Expand Down Expand Up @@ -114,12 +108,10 @@ func awaitSSHSession(
ctx context.Context,
client *dedalus.Client,
wsID, pubKey string,
wake bool,
) (*dedalus.SSHSession, error) {
resp, err := client.Workspaces.SSH.New(ctx, wsID, dedalus.WorkspaceSSHNewParams{
SSHSessionCreateParams: dedalus.SSHSessionCreateParams{
PublicKey: pubKey,
WakeIfNeeded: param.NewOpt(wake),
PublicKey: pubKey,
},
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package cmd

const Version = "0.0.2" // x-release-please-version
const Version = "0.0.3" // x-release-please-version
16 changes: 9 additions & 7 deletions pkg/cmd/workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var workspacesCreate = cli.Command{
},
&requestflag.Flag[int64]{
Name: "storage-gib",
Usage: "Storage in GiB.",
Required: true,
BodyPath: "storage_gib",
},
Expand Down Expand Up @@ -77,6 +78,7 @@ var workspacesUpdate = cli.Command{
},
&requestflag.Flag[int64]{
Name: "storage-gib",
Usage: "Storage in GiB.",
BodyPath: "storage_gib",
},
&requestflag.Flag[float64]{
Expand Down Expand Up @@ -130,8 +132,8 @@ var workspacesDelete = cli.Command{
HideHelpCommand: true,
}

var workspacesStreamStatus = cli.Command{
Name: "stream-status",
var workspacesWatch = cli.Command{
Name: "watch",
Usage: "Streams workspace lifecycle updates over Server-Sent Events. Each `status` event\ncontains a full `LifecycleResponse` payload. The stream closes after the\nworkspace reaches its current desired state.",
Suggest: true,
Flags: []cli.Flag{
Expand All @@ -148,7 +150,7 @@ var workspacesStreamStatus = cli.Command{
Usage: "The maximum number of items to return (use -1 for unlimited).",
},
},
Action: handleWorkspacesStreamStatus,
Action: handleWorkspacesWatch,
HideHelpCommand: true,
}

Expand Down Expand Up @@ -347,7 +349,7 @@ func handleWorkspacesDelete(ctx context.Context, cmd *cli.Command) error {
return ShowJSON(os.Stdout, "workspaces delete", obj, format, transform)
}

func handleWorkspacesStreamStatus(ctx context.Context, cmd *cli.Command) error {
func handleWorkspacesWatch(ctx context.Context, cmd *cli.Command) error {
client := dedalus.NewClient(getDefaultRequestOptions(cmd)...)
unusedArgs := cmd.Args().Slice()
if !cmd.IsSet("workspace-id") && len(unusedArgs) > 0 {
Expand All @@ -358,7 +360,7 @@ func handleWorkspacesStreamStatus(ctx context.Context, cmd *cli.Command) error {
return fmt.Errorf("Unexpected extra arguments: %v", unusedArgs)
}

params := dedalus.WorkspaceStreamStatusParams{}
params := dedalus.WorkspaceWatchParams{}

options, err := flagOptions(
cmd,
Expand All @@ -373,7 +375,7 @@ func handleWorkspacesStreamStatus(ctx context.Context, cmd *cli.Command) error {

format := cmd.Root().String("format")
transform := cmd.Root().String("transform")
stream := client.Workspaces.StreamStatusStreaming(
stream := client.Workspaces.WatchStreaming(
ctx,
cmd.Value("workspace-id").(string),
params,
Expand All @@ -383,5 +385,5 @@ func handleWorkspacesStreamStatus(ctx context.Context, cmd *cli.Command) error {
if cmd.IsSet("max-items") {
maxItems = cmd.Value("max-items").(int64)
}
return ShowJSONIterator(os.Stdout, "workspaces stream-status", stream, format, transform, maxItems)
return ShowJSONIterator(os.Stdout, "workspaces watch", stream, format, transform, maxItems)
}
4 changes: 2 additions & 2 deletions pkg/cmd/workspace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ func TestWorkspacesDelete(t *testing.T) {
})
}

func TestWorkspacesStreamStatus(t *testing.T) {
func TestWorkspacesWatch(t *testing.T) {
t.Run("regular flags", func(t *testing.T) {
mocktest.TestRunMockTestWithFlags(
t,
"--api-key", "string",
"workspaces", "stream-status",
"workspaces", "watch",
"--max-items", "10",
"--workspace-id", "workspace_id",
"--last-event-id", "Last-Event-ID",
Expand Down
4 changes: 0 additions & 4 deletions pkg/cmd/workspaceexecution.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ var workspacesExecutionsCreate = cli.Command{
Name: "timeout-ms",
BodyPath: "timeout_ms",
},
&requestflag.Flag[bool]{
Name: "wake-if-needed",
BodyPath: "wake_if_needed",
},
},
Action: handleWorkspacesExecutionsCreate,
HideHelpCommand: true,
Expand Down
4 changes: 1 addition & 3 deletions pkg/cmd/workspaceexecution_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ func TestWorkspacesExecutionsCreate(t *testing.T) {
"--env", "{foo: string}",
"--stdin", "stdin",
"--timeout-ms", "0",
"--wake-if-needed=true",
)
})

Expand All @@ -33,8 +32,7 @@ func TestWorkspacesExecutionsCreate(t *testing.T) {
"env:\n" +
" foo: string\n" +
"stdin: stdin\n" +
"timeout_ms: 0\n" +
"wake_if_needed: true\n")
"timeout_ms: 0\n")
mocktest.TestRunMockTestWithPipeAndFlags(
t, pipeData,
"--api-key", "string",
Expand Down
4 changes: 0 additions & 4 deletions pkg/cmd/workspacepreview.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ var workspacesPreviewsCreate = cli.Command{
Usage: `Allowed values: "http", "https".`,
BodyPath: "protocol",
},
&requestflag.Flag[bool]{
Name: "wake-if-needed",
BodyPath: "wake_if_needed",
},
},
Action: handleWorkspacesPreviewsCreate,
HideHelpCommand: true,
Expand Down
4 changes: 1 addition & 3 deletions pkg/cmd/workspacepreview_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,14 @@ func TestWorkspacesPreviewsCreate(t *testing.T) {
"--workspace-id", "workspace_id",
"--port", "0",
"--protocol", "http",
"--wake-if-needed=true",
)
})

t.Run("piping data", func(t *testing.T) {
// Test piping YAML data over stdin
pipeData := []byte("" +
"port: 0\n" +
"protocol: http\n" +
"wake_if_needed: true\n")
"protocol: http\n")
mocktest.TestRunMockTestWithPipeAndFlags(
t, pipeData,
"--api-key", "string",
Expand Down
4 changes: 0 additions & 4 deletions pkg/cmd/workspacessh.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ var workspacesSSHCreate = cli.Command{
Required: true,
BodyPath: "public_key",
},
&requestflag.Flag[bool]{
Name: "wake-if-needed",
BodyPath: "wake_if_needed",
},
},
Action: handleWorkspacesSSHCreate,
HideHelpCommand: true,
Expand Down
5 changes: 1 addition & 4 deletions pkg/cmd/workspacessh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,12 @@ func TestWorkspacesSSHCreate(t *testing.T) {
"workspaces:ssh", "create",
"--workspace-id", "workspace_id",
"--public-key", "public_key",
"--wake-if-needed=true",
)
})

t.Run("piping data", func(t *testing.T) {
// Test piping YAML data over stdin
pipeData := []byte("" +
"public_key: public_key\n" +
"wake_if_needed: true\n")
pipeData := []byte("public_key: public_key")
mocktest.TestRunMockTestWithPipeAndFlags(
t, pipeData,
"--api-key", "string",
Expand Down
4 changes: 0 additions & 4 deletions pkg/cmd/workspaceterminal.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ var workspacesTerminalsCreate = cli.Command{
Name: "shell",
BodyPath: "shell",
},
&requestflag.Flag[bool]{
Name: "wake-if-needed",
BodyPath: "wake_if_needed",
},
},
Action: handleWorkspacesTerminalsCreate,
HideHelpCommand: true,
Expand Down
4 changes: 1 addition & 3 deletions pkg/cmd/workspaceterminal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ func TestWorkspacesTerminalsCreate(t *testing.T) {
"--cwd", "cwd",
"--env", "{foo: string}",
"--shell", "shell",
"--wake-if-needed=true",
)
})

Expand All @@ -32,8 +31,7 @@ func TestWorkspacesTerminalsCreate(t *testing.T) {
"cwd: cwd\n" +
"env:\n" +
" foo: string\n" +
"shell: shell\n" +
"wake_if_needed: true\n")
"shell: shell\n")
mocktest.TestRunMockTestWithPipeAndFlags(
t, pipeData,
"--api-key", "string",
Expand Down
6 changes: 3 additions & 3 deletions scripts/mock
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ echo "==> Starting mock server with URL ${URL}"
# Run steady mock on the given spec
if [ "$1" == "--daemon" ]; then
# Pre-install the package so the download doesn't eat into the startup timeout
npm exec --package=@stdy/cli@0.19.6 -- steady --version
npm exec --package=@stdy/cli@0.19.7 -- steady --version

npm exec --package=@stdy/cli@0.19.6 -- steady --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=brackets --validator-query-object-format=brackets "$URL" &> .stdy.log &
npm exec --package=@stdy/cli@0.19.7 -- steady --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=brackets --validator-query-object-format=brackets "$URL" &> .stdy.log &

# Wait for server to come online via health endpoint (max 30s)
echo -n "Waiting for server"
Expand All @@ -48,5 +48,5 @@ if [ "$1" == "--daemon" ]; then

echo
else
npm exec --package=@stdy/cli@0.19.6 -- steady --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=brackets --validator-query-object-format=brackets "$URL"
npm exec --package=@stdy/cli@0.19.7 -- steady --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=brackets --validator-query-object-format=brackets "$URL"
fi
Loading
Loading