Skip to content

Commit 60226a2

Browse files
author
Ruxton
committed
Merge branch 'release/0.5.1'
2 parents 9b5d75e + 3939a37 commit 60226a2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

build/build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fi
1212
source $SCRIPTPATH/oauth_client.env
1313

1414
NAME=mixcloud
15-
VERSION=0.5
15+
VERSION=0.5.1
1616
MINVERSION=`date -u +%Y%m%d%.H%M%S`
1717
LDFLAGS="-s -w -X main.MINVERSION ${MINVERSION} -X main.VERSION ${VERSION} -X main.OAUTH_CLIENT_ID ${OAUTH_CLIENT_ID} -X main.OAUTH_CLIENT_SECRET ${OAUTH_CLIENT_SECRET}"
1818
OUTFILE=pkg/${VERSION}/${NAME}

mixcloud.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"github.com/ruxton/mixcloud/confirm"
1111
"github.com/ruxton/mixcloud/mixcloud"
1212
"github.com/ruxton/mixcloud/term"
13+
"github.com/mattn/go-colorable"
1314
"io"
1415
flag "launchpad.net/gnuflag"
1516
"mime/multipart"
@@ -44,8 +45,8 @@ var fileFlag = flag.String("file", "", "The mp3 file to upload to mixcloud")
4445
var coverFlag = flag.String("cover", "", "The image file to upload to mixcloud as the cover")
4546
var trackListFlag = flag.String("tracklist", "", "A file containing a VirtualDJ Tracklist for the cloudcast")
4647

47-
var STD_OUT = bufio.NewWriter(os.Stdout)
48-
var STD_ERR = bufio.NewWriter(os.Stderr)
48+
var STD_OUT = bufio.NewWriter(colorable.NewColorableStdout())
49+
var STD_ERR = bufio.NewWriter(colorable.NewColorableStderr())
4950
var STD_IN = bufio.NewReader(os.Stdin)
5051

5152
type Configuration struct {

0 commit comments

Comments
 (0)