Skip to content

Commit 6bde031

Browse files
feat: Remove exec from openapi spec
1 parent 5fe05fe commit 6bde031

File tree

2 files changed

+4
-33
lines changed

2 files changed

+4
-33
lines changed

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 19
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-5e2239ba23ac3dbbc95b8993a491e99e9fd23fed2e6ea9cecb81b83bf34a00ff.yml
3-
openapi_spec_hash: 4708504f9119289926b3341d083a1814
4-
config_hash: 45d3d945ce8eea7a52c8ead4c03fcf3c
1+
configured_endpoints: 18
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-5058541cc0e298a6fc3e9cda1af0e32586d1f39c5666946e15f546c1aedc18ea.yml
3+
openapi_spec_hash: 7f572ac0c7f9dc4f5fc7d9883a53d6c7
4+
config_hash: 35db4c99791f175865381f13a8ad6075

pkg/cmd/instance.go

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -81,18 +81,6 @@ var instancesDelete = cli.Command{
8181
HideHelpCommand: true,
8282
}
8383

84-
var instancesExecuteCommand = cli.Command{
85-
Name: "execute-command",
86-
Usage: "Upgrades to WebSocket for bidirectional streaming for shell access.",
87-
Flags: []cli.Flag{
88-
&cli.StringFlag{
89-
Name: "id",
90-
},
91-
},
92-
Action: handleInstancesExecuteCommand,
93-
HideHelpCommand: true,
94-
}
95-
9684
var instancesPutInStandby = cli.Command{
9785
Name: "put-in-standby",
9886
Usage: "Put instance in standby (pause, snapshot, delete VMM)",
@@ -238,23 +226,6 @@ func handleInstancesDelete(ctx context.Context, cmd *cli.Command) error {
238226
)
239227
}
240228

241-
func handleInstancesExecuteCommand(ctx context.Context, cmd *cli.Command) error {
242-
client := hypeman.NewClient(getDefaultRequestOptions(cmd)...)
243-
unusedArgs := cmd.Args().Slice()
244-
if !cmd.IsSet("id") && len(unusedArgs) > 0 {
245-
cmd.Set("id", unusedArgs[0])
246-
unusedArgs = unusedArgs[1:]
247-
}
248-
if len(unusedArgs) > 0 {
249-
return fmt.Errorf("Unexpected extra arguments: %v", unusedArgs)
250-
}
251-
return client.Instances.ExecuteCommand(
252-
ctx,
253-
cmd.Value("id").(string),
254-
option.WithMiddleware(debugMiddleware(cmd.Bool("debug"))),
255-
)
256-
}
257-
258229
func handleInstancesPutInStandby(ctx context.Context, cmd *cli.Command) error {
259230
client := hypeman.NewClient(getDefaultRequestOptions(cmd)...)
260231
unusedArgs := cmd.Args().Slice()

0 commit comments

Comments
 (0)