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 .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
release_doctor:
name: release doctor
runs-on: ubuntu-latest
if: github.repository == 'onkernel/hypeman-cli' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
if: github.repository == 'kernel/hypeman-cli' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ nfpms:
brews:
- name: hypeman
repository:
owner: onkernel
owner: kernel
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
homepage: https://github.com/onkernel/hypeman
homepage: https://github.com/kernel/hypeman
description: orchestrate cloud-hypervisor VMs
license: Apache-2.0
directory: Formula
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# Hypeman CLI

The official CLI for [Hypeman](https://github.com/onkernel/hypeman/).
The official CLI for [Hypeman](https://github.com/kernel/hypeman/).

## Installation

### Installing with Homebrew

```sh
brew install onkernel/tap/hypeman
brew install kernel/tap/hypeman
```

### Installing with Go

<!-- x-release-please-start-version -->

```sh
go install 'github.com/onkernel/hypeman-cli/cmd/hypeman@latest'
go install 'github.com/kernel/hypeman-cli/cmd/hypeman@latest'
```

### Running Locally
Expand Down Expand Up @@ -135,7 +135,7 @@ hypeman [resource] [command] [flags]

### Testing Preview Branches

When developing features in the main [hypeman](https://github.com/onkernel/hypeman) repo, Stainless automatically creates preview branches in `stainless-sdks/hypeman-cli` with your API changes. You can check out these branches locally to test the CLI changes:
When developing features in the main [hypeman](https://github.com/kernel/hypeman) repo, Stainless automatically creates preview branches in `stainless-sdks/hypeman-cli` with your API changes. You can check out these branches locally to test the CLI changes:

```bash
# Checkout preview/<branch> (e.g., if working on "devices" branch in hypeman)
Expand Down
4 changes: 2 additions & 2 deletions cmd/hypeman/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"net/http"
"os"

"github.com/onkernel/hypeman-cli/pkg/cmd"
"github.com/onkernel/hypeman-go"
"github.com/kernel/hypeman-cli/pkg/cmd"
"github.com/kernel/hypeman-go"
"github.com/tidwall/gjson"
)

Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/onkernel/hypeman-cli
module github.com/kernel/hypeman-cli

go 1.25

Expand All @@ -11,8 +11,8 @@ require (
github.com/google/go-containerregistry v0.20.7
github.com/gorilla/websocket v1.5.3
github.com/itchyny/json2yaml v0.1.4
github.com/kernel/hypeman-go v0.9.0
github.com/muesli/reflow v0.3.0
github.com/onkernel/hypeman-go v0.8.0
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 @@ -74,6 +74,8 @@ github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.2 h1:8Tjv8EJ+pM1xP8mK6egEbD1OgnV
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.2/go.mod h1:pkJQ2tZHJ0aFOVEEot6oZmaVEZcRme73eIFmhiVuRWs=
github.com/itchyny/json2yaml v0.1.4 h1:/pErVOXGG5iTyXHi/QKR4y3uzhLjGTEmmJIy97YT+k8=
github.com/itchyny/json2yaml v0.1.4/go.mod h1:6iudhBZdarpjLFRNj+clWLAkGft+9uCcjAZYXUH9eGI=
github.com/kernel/hypeman-go v0.9.0 h1:6qlMVyDsS6DHl9kugUedvqAt63Qdp8WMvnczoQ9Jf3s=
github.com/kernel/hypeman-go v0.9.0/go.mod h1:guRrhyP9QW/ebUS1UcZ0uZLLJeGAAhDNzSi68U4M9hI=
github.com/klauspost/compress v1.18.1 h1:bcSGx7UbpBqMChDtsF28Lw6v/G94LPrrbMbdC3JH2co=
github.com/klauspost/compress v1.18.1/go.mod h1:ZQFFVG+MdnR0P+l6wpXgIL4NTtwiKIdBnrBd8Nrxr+0=
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
Expand Down Expand Up @@ -105,8 +107,6 @@ 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.8.0 h1:OK6cMRUP9Z4D1PSynPHksvi94k2JFSqD3I59IlT19o0=
github.com/onkernel/hypeman-go v0.8.0/go.mod h1:Wtm4ewVGGPZc2ySeeuQISQyJxujyQuyDjXyksVkIyy8=
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
github.com/opencontainers/image-spec v1.1.1 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJwooC2xJA040=
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ func streamBuildEvents(ctx context.Context, baseURL, apiKey, buildID string) err

// Check final status
if finalStatus == "failed" {
return fmt.Errorf(buildError)
return fmt.Errorf("%s", buildError)
}
if finalStatus == "ready" {
return nil
Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/cmdutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"strings"
"syscall"

"github.com/onkernel/hypeman-cli/pkg/jsonview"
"github.com/onkernel/hypeman-go/option"
"github.com/kernel/hypeman-cli/pkg/jsonview"
"github.com/kernel/hypeman-go/option"

"github.com/itchyny/json2yaml"
"github.com/tidwall/gjson"
Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/cp.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
"time"

"github.com/gorilla/websocket"
"github.com/onkernel/hypeman-go"
"github.com/onkernel/hypeman-go/lib"
"github.com/kernel/hypeman-go"
"github.com/kernel/hypeman-go/lib"
"github.com/urfave/cli/v3"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"syscall"

"github.com/gorilla/websocket"
"github.com/onkernel/hypeman-go"
"github.com/kernel/hypeman-go"
"github.com/urfave/cli/v3"
"golang.org/x/term"
)
Expand Down
8 changes: 4 additions & 4 deletions pkg/cmd/flagoptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"mime/multipart"
"os"

"github.com/onkernel/hypeman-cli/internal/apiform"
"github.com/onkernel/hypeman-cli/internal/apiquery"
"github.com/onkernel/hypeman-cli/internal/requestflag"
"github.com/onkernel/hypeman-go/option"
"github.com/kernel/hypeman-cli/internal/apiform"
"github.com/kernel/hypeman-cli/internal/apiquery"
"github.com/kernel/hypeman-cli/internal/requestflag"
"github.com/kernel/hypeman-go/option"

"github.com/urfave/cli/v3"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"time"

"github.com/onkernel/hypeman-go"
"github.com/kernel/hypeman-go"
)

// TableWriter provides simple table formatting for CLI output
Expand Down
6 changes: 3 additions & 3 deletions pkg/cmd/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"fmt"
"os"

"github.com/onkernel/hypeman-cli/internal/apiquery"
"github.com/onkernel/hypeman-go"
"github.com/onkernel/hypeman-go/option"
"github.com/kernel/hypeman-cli/internal/apiquery"
"github.com/kernel/hypeman-go"
"github.com/kernel/hypeman-go/option"
"github.com/tidwall/gjson"
"github.com/urfave/cli/v3"
)
Expand Down
8 changes: 4 additions & 4 deletions pkg/cmd/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"fmt"
"os"

"github.com/onkernel/hypeman-cli/internal/apiquery"
"github.com/onkernel/hypeman-cli/internal/requestflag"
"github.com/onkernel/hypeman-go"
"github.com/onkernel/hypeman-go/option"
"github.com/kernel/hypeman-cli/internal/apiquery"
"github.com/kernel/hypeman-cli/internal/requestflag"
"github.com/kernel/hypeman-go"
"github.com/kernel/hypeman-go/option"
"github.com/tidwall/gjson"
"github.com/urfave/cli/v3"
)
Expand Down
8 changes: 4 additions & 4 deletions pkg/cmd/ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"fmt"
"os"

"github.com/onkernel/hypeman-cli/internal/apiquery"
"github.com/onkernel/hypeman-cli/internal/requestflag"
"github.com/onkernel/hypeman-go"
"github.com/onkernel/hypeman-go/option"
"github.com/kernel/hypeman-cli/internal/apiquery"
"github.com/kernel/hypeman-cli/internal/requestflag"
"github.com/kernel/hypeman-go"
"github.com/kernel/hypeman-go/option"
"github.com/tidwall/gjson"
"github.com/urfave/cli/v3"
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/ingresscmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"os"
"strings"

"github.com/onkernel/hypeman-go"
"github.com/onkernel/hypeman-go/option"
"github.com/kernel/hypeman-go"
"github.com/kernel/hypeman-go/option"
"github.com/urfave/cli/v3"
)

Expand Down
8 changes: 4 additions & 4 deletions pkg/cmd/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"fmt"
"os"

"github.com/onkernel/hypeman-cli/internal/apiquery"
"github.com/onkernel/hypeman-cli/internal/requestflag"
"github.com/onkernel/hypeman-go"
"github.com/onkernel/hypeman-go/option"
"github.com/kernel/hypeman-cli/internal/apiquery"
"github.com/kernel/hypeman-cli/internal/requestflag"
"github.com/kernel/hypeman-go"
"github.com/kernel/hypeman-go/option"
"github.com/tidwall/gjson"
"github.com/urfave/cli/v3"
)
Expand Down
8 changes: 4 additions & 4 deletions pkg/cmd/instancevolume.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"fmt"
"os"

"github.com/onkernel/hypeman-cli/internal/apiquery"
"github.com/onkernel/hypeman-cli/internal/requestflag"
"github.com/onkernel/hypeman-go"
"github.com/onkernel/hypeman-go/option"
"github.com/kernel/hypeman-cli/internal/apiquery"
"github.com/kernel/hypeman-cli/internal/requestflag"
"github.com/kernel/hypeman-go"
"github.com/kernel/hypeman-go/option"
"github.com/tidwall/gjson"
"github.com/urfave/cli/v3"
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/lifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"os"

"github.com/onkernel/hypeman-go"
"github.com/onkernel/hypeman-go/option"
"github.com/kernel/hypeman-go"
"github.com/kernel/hypeman-go/option"
"github.com/urfave/cli/v3"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"fmt"

"github.com/onkernel/hypeman-go"
"github.com/onkernel/hypeman-go/option"
"github.com/kernel/hypeman-go"
"github.com/kernel/hypeman-go/option"
"github.com/urfave/cli/v3"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/ps.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"os"

"github.com/onkernel/hypeman-go"
"github.com/onkernel/hypeman-go/option"
"github.com/kernel/hypeman-go"
"github.com/kernel/hypeman-go/option"
"github.com/urfave/cli/v3"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"os"

"github.com/onkernel/hypeman-go"
"github.com/onkernel/hypeman-go/option"
"github.com/kernel/hypeman-go"
"github.com/kernel/hypeman-go/option"
"github.com/urfave/cli/v3"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"fmt"

"github.com/onkernel/hypeman-go"
"github.com/onkernel/hypeman-go/option"
"github.com/kernel/hypeman-go"
"github.com/kernel/hypeman-go/option"
"github.com/urfave/cli/v3"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"strings"
"time"

"github.com/onkernel/hypeman-go"
"github.com/onkernel/hypeman-go/option"
"github.com/kernel/hypeman-go"
"github.com/kernel/hypeman-go/option"
"github.com/urfave/cli/v3"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"reflect"
"strings"

"github.com/onkernel/hypeman-go/option"
"github.com/kernel/hypeman-go/option"

"github.com/tidwall/sjson"
"github.com/urfave/cli/v3"
Expand Down
8 changes: 4 additions & 4 deletions pkg/cmd/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"fmt"
"os"

"github.com/onkernel/hypeman-cli/internal/apiquery"
"github.com/onkernel/hypeman-cli/internal/requestflag"
"github.com/onkernel/hypeman-go"
"github.com/onkernel/hypeman-go/option"
"github.com/kernel/hypeman-cli/internal/apiquery"
"github.com/kernel/hypeman-cli/internal/requestflag"
"github.com/kernel/hypeman-go"
"github.com/kernel/hypeman-go/option"
"github.com/tidwall/gjson"
"github.com/urfave/cli/v3"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/link
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ fi

echo "==> Linking with local directory"
go mod tidy -e
go mod edit -replace github.com/onkernel/hypeman-go="$LOCAL_GO"
go mod edit -replace github.com/kernel/hypeman-go="$LOCAL_GO"
2 changes: 1 addition & 1 deletion scripts/unlink
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ set -e
cd "$(dirname "$0")/.."

echo "==> Unlinking with local directory"
go mod edit -dropreplace github.com/onkernel/hypeman-go
go mod edit -dropreplace github.com/kernel/hypeman-go
4 changes: 2 additions & 2 deletions scripts/use-sdk-preview
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -euo pipefail

# Point the onkernel/hypeman-go dependency to stainless-sdks/hypeman-go at a specific branch.
# Point the kernel/hypeman-go dependency to stainless-sdks/hypeman-go at a specific branch.
#
# Usage:
# ./scripts/use-sdk-preview <branch-name>
Expand All @@ -13,7 +13,7 @@ set -euo pipefail
cd "$(dirname "$0")/.."

STAINLESS_SDK_REPO="github.com/stainless-sdks/hypeman-go"
PUBLIC_SDK_REPO="github.com/onkernel/hypeman-go"
PUBLIC_SDK_REPO="github.com/kernel/hypeman-go"

# Ensure the Go toolchain can access the private SDK repository.
if [[ -z "${GOPRIVATE:-}" ]]; then
Expand Down