Skip to content

Commit a4708d4

Browse files
committed
Conditionally add CoPilot command for Windows and macOS platforms
1 parent 7e2a04a commit a4708d4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package main
22

33
import (
44
"log"
5+
"runtime"
56

67
"github.com/spf13/cobra"
78
)
@@ -26,7 +27,9 @@ func main() {
2627

2728
rootCmd.AddCommand(GitCommitCmd)
2829

29-
rootCmd.AddCommand(CoPilotCmd)
30+
if runtime.GOOS == "windows" || runtime.GOOS == "darwin" {
31+
rootCmd.AddCommand(CoPilotCmd)
32+
}
3033

3134
rootCmd.AddCommand(WebCmd)
3235

0 commit comments

Comments
 (0)