Skip to content

Commit 5fe05fe

Browse files
authored
Merge pull request #6 from onkernel/release-please--branches--main--changes--next
release: 0.3.0
2 parents 0963c90 + 6fe85ae commit 5fe05fe

File tree

8 files changed

+47
-9
lines changed

8 files changed

+47
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.prism.log
22
dist/
33
/hypeman
4+
.env

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.2.0"
2+
".": "0.3.0"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 18
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-2d26027dfc3e310d3004f117e7a2834be18bdb5054b034262b2caa4c69b78f79.yml
3-
openapi_spec_hash: 02e0e42393d3a95414878cdd23d1f5ad
4-
config_hash: 35db4c99791f175865381f13a8ad6075
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

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.3.0 (2025-11-26)
4+
5+
Full Changelog: [v0.2.0...v0.3.0](https://github.com/onkernel/hypeman-cli/compare/v0.2.0...v0.3.0)
6+
7+
### Features
8+
9+
* **api:** add exec ([cc1d174](https://github.com/onkernel/hypeman-cli/commit/cc1d17479467b19436346b30256f92d99474d9ed))
10+
311
## 0.2.0 (2025-11-26)
412

513
Full Changelog: [v0.1.2...v0.2.0](https://github.com/onkernel/hypeman-cli/compare/v0.1.2...v0.2.0)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require (
99
github.com/charmbracelet/x/term v0.2.1
1010
github.com/itchyny/json2yaml v0.1.4
1111
github.com/muesli/reflow v0.3.0
12-
github.com/onkernel/hypeman-go v0.0.3
12+
github.com/onkernel/hypeman-go v0.2.0
1313
github.com/tidwall/gjson v1.18.0
1414
github.com/tidwall/pretty v1.2.1
1515
github.com/tidwall/sjson v1.2.5

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ github.com/muesli/reflow v0.3.0 h1:IFsN6K9NfGtjeggFP+68I4chLZV2yIKsXJFNZ+eWh6s=
4343
github.com/muesli/reflow v0.3.0/go.mod h1:pbwTDkVPibjO2kyvBQRBxTWEEGDGq0FlB1BIKtnHY/8=
4444
github.com/muesli/termenv v0.16.0 h1:S5AlUN9dENB57rsbnkPyfdGuWIlkmzJjbFf0Tf5FWUc=
4545
github.com/muesli/termenv v0.16.0/go.mod h1:ZRfOIKPFDYQoDFF4Olj7/QJbW60Ol/kL1pU3VfY/Cnk=
46-
github.com/onkernel/hypeman-go v0.0.3 h1:GXi3O8XHuMbXVc4F3gKpBiRAKnt5uVtLmUrrWgGchQg=
47-
github.com/onkernel/hypeman-go v0.0.3/go.mod h1:pxRRFfVcLvafZpDD1O6IjwHnem3hKEuZTCClrnGiIKA=
46+
github.com/onkernel/hypeman-go v0.2.0 h1:wiDMSi7eGTKfVfdxhCg8vcFKa6xbXjWG2sSHk7EXi4Y=
47+
github.com/onkernel/hypeman-go v0.2.0/go.mod h1:pxRRFfVcLvafZpDD1O6IjwHnem3hKEuZTCClrnGiIKA=
4848
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
4949
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
5050
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=

pkg/cmd/instance.go

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,18 @@ 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+
8496
var instancesPutInStandby = cli.Command{
8597
Name: "put-in-standby",
8698
Usage: "Put instance in standby (pause, snapshot, delete VMM)",
@@ -226,6 +238,23 @@ func handleInstancesDelete(ctx context.Context, cmd *cli.Command) error {
226238
)
227239
}
228240

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+
229258
func handleInstancesPutInStandby(ctx context.Context, cmd *cli.Command) error {
230259
client := hypeman.NewClient(getDefaultRequestOptions(cmd)...)
231260
unusedArgs := cmd.Args().Slice()

pkg/cmd/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
package cmd
44

5-
const Version = "0.2.0" // x-release-please-version
5+
const Version = "0.3.0" // x-release-please-version

0 commit comments

Comments
 (0)