File tree 4 files changed +7
-3
lines changed
4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ builds:
13
13
- amd64
14
14
- arm
15
15
- arm64
16
+ ignore :
17
+ -
18
+ goos : windows
19
+ goarch : arm64
16
20
release :
17
21
name_template : " {{.ProjectName}}-v{{.Version}}"
18
22
brews :
Original file line number Diff line number Diff line change 2
2
3
3
package main
4
4
5
- func setupWindowsConsole () error {
5
+ func setupWindowsConsole (stdoutFd int ) error {
6
6
return nil
7
7
}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package main
2
2
3
3
import "golang.org/x/sys/windows"
4
4
5
- func setupWindowsConsole () error {
5
+ func setupWindowsConsole (stdoutFd int ) error {
6
6
console := windows .Handle (stdoutFd )
7
7
var originalMode uint32
8
8
windows .GetConsoleMode (console , & originalMode )
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ func main() {
38
38
// Setting Console mode on windows to allow color output, By default scheme is DefaultColorScheme
39
39
// But in case of any error, it is set to ColorScheme{}.
40
40
scheme := formatter .DefaultColorScheme
41
- if err := setupWindowsConsole (); err != nil {
41
+ if err := setupWindowsConsole (stdoutFd ); err != nil {
42
42
scheme = formatter.ColorScheme {}
43
43
}
44
44
var stdout io.Writer = os .Stdout
You can’t perform that action at this time.
0 commit comments