diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index e1356d2..b293109 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -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 diff --git a/.goreleaser.yml b/.goreleaser.yml index 1c9bbac..d843c3f 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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 diff --git a/README.md b/README.md index 0436c25..75e1c66 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ # 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 @@ -15,7 +15,7 @@ brew install onkernel/tap/hypeman ```sh -go install 'github.com/onkernel/hypeman-cli/cmd/hypeman@latest' +go install 'github.com/kernel/hypeman-cli/cmd/hypeman@latest' ``` ### Running Locally @@ -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/ (e.g., if working on "devices" branch in hypeman) diff --git a/cmd/hypeman/main.go b/cmd/hypeman/main.go index aaf0f90..d6f254b 100644 --- a/cmd/hypeman/main.go +++ b/cmd/hypeman/main.go @@ -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" ) diff --git a/go.mod b/go.mod index 1fb7a42..a592898 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/onkernel/hypeman-cli +module github.com/kernel/hypeman-cli go 1.25 @@ -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 diff --git a/go.sum b/go.sum index d2e20f0..c1e319d 100644 --- a/go.sum +++ b/go.sum @@ -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= @@ -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= diff --git a/pkg/cmd/build.go b/pkg/cmd/build.go index 875acb4..d0e0e7c 100644 --- a/pkg/cmd/build.go +++ b/pkg/cmd/build.go @@ -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 diff --git a/pkg/cmd/cmdutil.go b/pkg/cmd/cmdutil.go index 6a842c2..6860fe6 100644 --- a/pkg/cmd/cmdutil.go +++ b/pkg/cmd/cmdutil.go @@ -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" diff --git a/pkg/cmd/cp.go b/pkg/cmd/cp.go index d5a59fa..97d0410 100644 --- a/pkg/cmd/cp.go +++ b/pkg/cmd/cp.go @@ -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" ) diff --git a/pkg/cmd/exec.go b/pkg/cmd/exec.go index b0defbb..ca8a2cd 100644 --- a/pkg/cmd/exec.go +++ b/pkg/cmd/exec.go @@ -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" ) diff --git a/pkg/cmd/flagoptions.go b/pkg/cmd/flagoptions.go index 981b8e8..ab7c0d5 100644 --- a/pkg/cmd/flagoptions.go +++ b/pkg/cmd/flagoptions.go @@ -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" ) diff --git a/pkg/cmd/format.go b/pkg/cmd/format.go index 8e9b1df..f8999c8 100644 --- a/pkg/cmd/format.go +++ b/pkg/cmd/format.go @@ -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 diff --git a/pkg/cmd/health.go b/pkg/cmd/health.go index 7a3d7f7..4b0184e 100644 --- a/pkg/cmd/health.go +++ b/pkg/cmd/health.go @@ -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" ) diff --git a/pkg/cmd/image.go b/pkg/cmd/image.go index 9f19236..7235449 100644 --- a/pkg/cmd/image.go +++ b/pkg/cmd/image.go @@ -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" ) diff --git a/pkg/cmd/ingress.go b/pkg/cmd/ingress.go index 1d81758..ec05bd8 100644 --- a/pkg/cmd/ingress.go +++ b/pkg/cmd/ingress.go @@ -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" ) diff --git a/pkg/cmd/ingresscmd.go b/pkg/cmd/ingresscmd.go index e632eea..b9badd7 100644 --- a/pkg/cmd/ingresscmd.go +++ b/pkg/cmd/ingresscmd.go @@ -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" ) diff --git a/pkg/cmd/instance.go b/pkg/cmd/instance.go index f569fb8..ec935a7 100644 --- a/pkg/cmd/instance.go +++ b/pkg/cmd/instance.go @@ -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" ) diff --git a/pkg/cmd/instancevolume.go b/pkg/cmd/instancevolume.go index f0ac631..30694d9 100644 --- a/pkg/cmd/instancevolume.go +++ b/pkg/cmd/instancevolume.go @@ -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" ) diff --git a/pkg/cmd/lifecycle.go b/pkg/cmd/lifecycle.go index a297e6f..530c466 100644 --- a/pkg/cmd/lifecycle.go +++ b/pkg/cmd/lifecycle.go @@ -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" ) diff --git a/pkg/cmd/logs.go b/pkg/cmd/logs.go index 22ca964..d461aae 100644 --- a/pkg/cmd/logs.go +++ b/pkg/cmd/logs.go @@ -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" ) diff --git a/pkg/cmd/ps.go b/pkg/cmd/ps.go index 71fabff..f9b04c8 100644 --- a/pkg/cmd/ps.go +++ b/pkg/cmd/ps.go @@ -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" ) diff --git a/pkg/cmd/pull.go b/pkg/cmd/pull.go index 9993e4e..cf5c686 100644 --- a/pkg/cmd/pull.go +++ b/pkg/cmd/pull.go @@ -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" ) diff --git a/pkg/cmd/rm.go b/pkg/cmd/rm.go index a0b079b..4d7884a 100644 --- a/pkg/cmd/rm.go +++ b/pkg/cmd/rm.go @@ -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" ) diff --git a/pkg/cmd/run.go b/pkg/cmd/run.go index 7da4d6e..7adb301 100644 --- a/pkg/cmd/run.go +++ b/pkg/cmd/run.go @@ -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" ) diff --git a/pkg/cmd/util.go b/pkg/cmd/util.go index 5a17ff1..e71c31b 100644 --- a/pkg/cmd/util.go +++ b/pkg/cmd/util.go @@ -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" diff --git a/pkg/cmd/volume.go b/pkg/cmd/volume.go index b3b8535..551dc14 100644 --- a/pkg/cmd/volume.go +++ b/pkg/cmd/volume.go @@ -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" ) diff --git a/scripts/link b/scripts/link index 1b034b0..5c7f88e 100755 --- a/scripts/link +++ b/scripts/link @@ -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" diff --git a/scripts/unlink b/scripts/unlink index beefe66..e96c0dc 100755 --- a/scripts/unlink +++ b/scripts/unlink @@ -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 diff --git a/scripts/use-sdk-preview b/scripts/use-sdk-preview index 1a33339..8518d61 100755 --- a/scripts/use-sdk-preview +++ b/scripts/use-sdk-preview @@ -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 @@ -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