Skip to content

Commit d35348a

Browse files
authored
fix(shell): disabled message show current runtime instead of freebsd (#3220)
1 parent 41c0b89 commit d35348a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/core/shell_disabled.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ import (
66
"context"
77
"fmt"
88
"os"
9+
"runtime"
910

1011
"github.com/spf13/cobra"
1112
)
1213

1314
func RunShell(ctx context.Context, printer *Printer, meta *meta, rootCmd *cobra.Command, args []string) {
14-
err := printer.Print(fmt.Errorf("shell is currently disabled on freebsd"), nil)
15+
err := printer.Print(fmt.Errorf("shell is currently disabled on %s/%s", runtime.GOARCH, runtime.GOOS), nil)
1516
if err != nil {
1617
_, _ = fmt.Fprintln(os.Stderr, err)
1718
}

0 commit comments

Comments
 (0)