Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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.3.0"
".": "0.4.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 19
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-5e2239ba23ac3dbbc95b8993a491e99e9fd23fed2e6ea9cecb81b83bf34a00ff.yml
openapi_spec_hash: 4708504f9119289926b3341d083a1814
config_hash: 45d3d945ce8eea7a52c8ead4c03fcf3c
configured_endpoints: 18
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-5058541cc0e298a6fc3e9cda1af0e32586d1f39c5666946e15f546c1aedc18ea.yml
openapi_spec_hash: 7f572ac0c7f9dc4f5fc7d9883a53d6c7
config_hash: 35db4c99791f175865381f13a8ad6075
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.4.0 (2025-11-26)

Full Changelog: [v0.3.0...v0.4.0](https://github.com/onkernel/hypeman-cli/compare/v0.3.0...v0.4.0)

### Features

* Remove exec from openapi spec ([6bde031](https://github.com/onkernel/hypeman-cli/commit/6bde031264de6cd6b17afe32f73a70bf14c2f36d))

## 0.3.0 (2025-11-26)

Full Changelog: [v0.2.0...v0.3.0](https://github.com/onkernel/hypeman-cli/compare/v0.2.0...v0.3.0)
Expand Down
29 changes: 0 additions & 29 deletions pkg/cmd/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,6 @@ var instancesDelete = cli.Command{
HideHelpCommand: true,
}

var instancesExecuteCommand = cli.Command{
Name: "execute-command",
Usage: "Upgrades to WebSocket for bidirectional streaming for shell access.",
Flags: []cli.Flag{
&cli.StringFlag{
Name: "id",
},
},
Action: handleInstancesExecuteCommand,
HideHelpCommand: true,
}

var instancesPutInStandby = cli.Command{
Name: "put-in-standby",
Usage: "Put instance in standby (pause, snapshot, delete VMM)",
Expand Down Expand Up @@ -238,23 +226,6 @@ func handleInstancesDelete(ctx context.Context, cmd *cli.Command) error {
)
}

func handleInstancesExecuteCommand(ctx context.Context, cmd *cli.Command) error {
client := hypeman.NewClient(getDefaultRequestOptions(cmd)...)
unusedArgs := cmd.Args().Slice()
if !cmd.IsSet("id") && len(unusedArgs) > 0 {
cmd.Set("id", unusedArgs[0])
unusedArgs = unusedArgs[1:]
}
if len(unusedArgs) > 0 {
return fmt.Errorf("Unexpected extra arguments: %v", unusedArgs)
}
return client.Instances.ExecuteCommand(
ctx,
cmd.Value("id").(string),
option.WithMiddleware(debugMiddleware(cmd.Bool("debug"))),
)
}

func handleInstancesPutInStandby(ctx context.Context, cmd *cli.Command) error {
client := hypeman.NewClient(getDefaultRequestOptions(cmd)...)
unusedArgs := cmd.Args().Slice()
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.3.0" // x-release-please-version
const Version = "0.4.0" // x-release-please-version