Skip to content

Commit c6867f1

Browse files
authored
fix(shell): disable shell on freebsd (#2522)
1 parent 85d7683 commit c6867f1

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

internal/core/shell.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
//go:build !freebsd
2+
// +build !freebsd
3+
4+
// shell is disabled on freebsd as current version of github.com/pkg/[email protected] is not compiling
15
package core
26

37
import (

internal/core/shell_disabled.go

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//go:build freebsd
2+
// +build freebsd
3+
4+
package core
5+
6+
import (
7+
"context"
8+
"fmt"
9+
"os"
10+
11+
"github.com/spf13/cobra"
12+
)
13+
14+
func RunShell(ctx context.Context, printer *Printer, meta *meta, rootCmd *cobra.Command, args []string) {
15+
err := printer.Print(fmt.Errorf("shell is currently disabled on freebsd"), nil)
16+
if err != nil {
17+
_, _ = fmt.Fprintln(os.Stderr, err)
18+
}
19+
}

0 commit comments

Comments
 (0)