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.1.2"
".": "0.2.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 18
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-7c27e323412e72166bce2de104f1bf82b57197e05b686e94cd81d07e288bd558.yml
openapi_spec_hash: 4656d2b318d04a9fec0210897d76b505
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fhypeman-2d26027dfc3e310d3004f117e7a2834be18bdb5054b034262b2caa4c69b78f79.yml
openapi_spec_hash: 02e0e42393d3a95414878cdd23d1f5ad
config_hash: 35db4c99791f175865381f13a8ad6075
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.2.0 (2025-11-26)

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

### Features

* Network manager ([cece9ba](https://github.com/onkernel/hypeman-cli/commit/cece9ba6e801a9b29512357060e5642976c8e3ec))


### Chores

* **client:** change name of underlying properties for models and params ([27fd97a](https://github.com/onkernel/hypeman-cli/commit/27fd97aa3faa8b436a625783232d36250bbd191a))

## 0.1.2 (2025-11-20)

Full Changelog: [v0.1.1...v0.1.2](https://github.com/onkernel/hypeman-cli/compare/v0.1.1...v0.1.2)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/charmbracelet/x/term v0.2.1
github.com/itchyny/json2yaml v0.1.4
github.com/muesli/reflow v0.3.0
github.com/onkernel/hypeman-go v0.0.2
github.com/onkernel/hypeman-go v0.0.3
github.com/tidwall/gjson v1.18.0
github.com/tidwall/pretty v1.2.1
github.com/tidwall/sjson v1.2.5
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ github.com/muesli/reflow v0.3.0 h1:IFsN6K9NfGtjeggFP+68I4chLZV2yIKsXJFNZ+eWh6s=
github.com/muesli/reflow v0.3.0/go.mod h1:pbwTDkVPibjO2kyvBQRBxTWEEGDGq0FlB1BIKtnHY/8=
github.com/muesli/termenv v0.16.0 h1:S5AlUN9dENB57rsbnkPyfdGuWIlkmzJjbFf0Tf5FWUc=
github.com/muesli/termenv v0.16.0/go.mod h1:ZRfOIKPFDYQoDFF4Olj7/QJbW60Ol/kL1pU3VfY/Cnk=
github.com/onkernel/hypeman-go v0.0.2 h1:2hFv9bBLGoSw0DGTN4RWG9YmmKo6HrO/kwtVcq9RCYY=
github.com/onkernel/hypeman-go v0.0.2/go.mod h1:pxRRFfVcLvafZpDD1O6IjwHnem3hKEuZTCClrnGiIKA=
github.com/onkernel/hypeman-go v0.0.3 h1:GXi3O8XHuMbXVc4F3gKpBiRAKnt5uVtLmUrrWgGchQg=
github.com/onkernel/hypeman-go v0.0.3/go.mod h1:pxRRFfVcLvafZpDD1O6IjwHnem3hKEuZTCClrnGiIKA=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
Expand Down
45 changes: 20 additions & 25 deletions pkg/cmd/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,28 @@ var instancesCreate = cli.Command{
Name: "create",
Usage: "Create and start instance",
Flags: []cli.Flag{
&cli.StringFlag{
Name: "id",
Usage: "Unique identifier for the instance (provided by caller)",
},
&cli.StringFlag{
Name: "image",
Usage: "Image identifier",
Usage: "OCI image reference",
},
&cli.StringFlag{
Name: "name",
Usage: "Human-readable name",
Usage: "Human-readable name (lowercase letters, digits, and dashes only; cannot start or end with a dash)",
},
&cli.Int64Flag{
Name: "memory-max-mb",
Usage: "Maximum memory with hotplug in MB",
Value: 4096,
&cli.StringFlag{
Name: "hotplug-size",
Usage: `Additional memory for hotplug (human-readable format like "3GB", "1G")`,
Value: "3GB",
},
&cli.Int64Flag{
Name: "memory-mb",
Usage: "Base memory in MB",
Value: 1024,
&cli.StringFlag{
Name: "overlay-size",
Usage: `Writable overlay disk size (human-readable format like "10GB", "50G")`,
Value: "10GB",
},
&cli.Int64Flag{
Name: "timeout-seconds",
Usage: "Timeout for scale-to-zero semantics",
Value: 3600,
&cli.StringFlag{
Name: "size",
Usage: `Base memory size (human-readable format like "1GB", "512MB", "2G")`,
Value: "1GB",
},
&cli.Int64Flag{
Name: "vcpus",
Expand Down Expand Up @@ -138,13 +134,12 @@ func handleInstancesCreate(ctx context.Context, cmd *cli.Command) error {
}
params := hypeman.InstanceNewParams{}
if err := unmarshalStdinWithFlags(cmd, map[string]string{
"id": "id",
"image": "image",
"name": "name",
"memory-max-mb": "memory_max_mb",
"memory-mb": "memory_mb",
"timeout-seconds": "timeout_seconds",
"vcpus": "vcpus",
"image": "image",
"name": "name",
"hotplug-size": "hotplug_size",
"overlay-size": "overlay_size",
"size": "size",
"vcpus": "vcpus",
}, &params); err != nil {
return err
}
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.1.2" // x-release-please-version
const Version = "0.2.0" // x-release-please-version