Replace github.com/tsuru/gnuflag with github.com/juju/gnuflag (#2340)

Replace vendor folder and where it is used.
This commit is contained in:
Sungguk Lim
2016-08-12 02:29:57 +09:00
committed by Erik Arvidsson
parent 58948d3433
commit 6697c2e6fc
36 changed files with 42 additions and 32 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ import (
"github.com/attic-labs/noms/go/d"
"github.com/attic-labs/noms/go/datas"
"github.com/julienschmidt/httprouter"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
const (
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"time"
"github.com/attic-labs/noms/cmd/util"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
var commands = []*util.Command{
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"github.com/attic-labs/noms/go/d"
"github.com/attic-labs/noms/go/spec"
"github.com/attic-labs/noms/go/util/outputpager"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
var summarize bool
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"github.com/attic-labs/noms/go/d"
"github.com/attic-labs/noms/go/spec"
"github.com/attic-labs/noms/go/types"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
var toDelete string
+1 -1
View File
@@ -20,7 +20,7 @@ import (
"github.com/attic-labs/noms/go/util/orderedparallel"
"github.com/attic-labs/noms/go/util/outputpager"
"github.com/mgutz/ansi"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
var (
+1 -1
View File
@@ -14,7 +14,7 @@ import (
"github.com/attic-labs/noms/go/datas"
"github.com/attic-labs/noms/go/spec"
"github.com/attic-labs/noms/go/util/profile"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
var (
+1 -1
View File
@@ -13,7 +13,7 @@ import (
"github.com/attic-labs/noms/go/spec"
"github.com/attic-labs/noms/go/types"
"github.com/attic-labs/noms/go/util/outputpager"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
var nomsShow = &util.Command{
+1 -1
View File
@@ -17,7 +17,7 @@ import (
"github.com/attic-labs/noms/go/util/profile"
"github.com/attic-labs/noms/go/util/status"
humanize "github.com/dustin/go-humanize"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
var (
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"github.com/attic-labs/noms/cmd/util"
"github.com/attic-labs/noms/go/constants"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
var nomsVersion = &util.Command{
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"os"
"strings"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
type Command struct {
+1 -1
View File
@@ -20,7 +20,7 @@ import (
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/dynamodb"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
const (
+1 -1
View File
@@ -17,7 +17,7 @@ import (
"github.com/syndtr/goleveldb/leveldb/errors"
"github.com/syndtr/goleveldb/leveldb/filter"
"github.com/syndtr/goleveldb/leveldb/opt"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
const (
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"fmt"
"os"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
type Exiter interface {
+1 -1
View File
@@ -17,7 +17,7 @@ import (
"github.com/attic-labs/noms/go/dataset"
"github.com/attic-labs/noms/go/types"
"github.com/attic-labs/noms/go/util/profile"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
var (
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"time"
humanize "github.com/dustin/go-humanize"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
// used to ensure all of the big.Floats end up with the same precision
+1 -1
View File
@@ -17,7 +17,7 @@ import (
"github.com/codahale/blake2"
humanize "github.com/dustin/go-humanize"
"github.com/kch42/buzhash"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
func main() {
+1 -1
View File
@@ -16,7 +16,7 @@ import (
"github.com/attic-labs/noms/go/dataset"
"github.com/attic-labs/noms/go/hash"
"github.com/attic-labs/noms/go/types"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
var (
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"github.com/attic-labs/noms/go/d"
"github.com/attic-labs/testify/suite"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
type ClientTestSuite struct {
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"github.com/attic-labs/noms/go/d"
goisatty "github.com/mattn/go-isatty"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
var (
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"runtime/pprof"
"github.com/attic-labs/noms/go/d"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
var (
+1 -1
View File
@@ -17,7 +17,7 @@ import (
"github.com/attic-labs/noms/go/util/progressreader"
"github.com/attic-labs/noms/go/util/status"
humanize "github.com/dustin/go-humanize"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
func main() {
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"github.com/attic-labs/noms/go/spec"
"github.com/attic-labs/noms/go/types"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
func main() {
+1 -1
View File
@@ -14,7 +14,7 @@ import (
"github.com/attic-labs/noms/go/types"
"github.com/attic-labs/noms/go/util/profile"
"github.com/attic-labs/noms/samples/go/csv"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
func main() {
+1 -1
View File
@@ -23,7 +23,7 @@ import (
"github.com/attic-labs/noms/go/util/status"
"github.com/attic-labs/noms/samples/go/csv"
humanize "github.com/dustin/go-humanize"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
const (
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"github.com/attic-labs/noms/go/chunks"
"github.com/attic-labs/noms/go/d"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
var (
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"github.com/attic-labs/noms/go/dataset"
"github.com/attic-labs/noms/go/spec"
"github.com/attic-labs/noms/go/types"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
func main() {
+1 -1
View File
@@ -15,7 +15,7 @@ import (
"github.com/attic-labs/noms/go/d"
"github.com/attic-labs/noms/go/spec"
"github.com/attic-labs/noms/go/util/jsontonoms"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
func main() {
+1 -1
View File
@@ -20,7 +20,7 @@ import (
"github.com/attic-labs/noms/go/util/progressreader"
"github.com/attic-labs/noms/go/util/status"
human "github.com/dustin/go-humanize"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
var (
+1 -1
View File
@@ -20,7 +20,7 @@ import (
"github.com/attic-labs/noms/go/util/jsontonoms"
"github.com/attic-labs/noms/go/util/profile"
"github.com/clbanning/mxj"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
var (
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"github.com/attic-labs/noms/go/d"
"github.com/attic-labs/noms/tools/runner"
flag "github.com/tsuru/gnuflag"
flag "github.com/juju/gnuflag"
)
const (
@@ -1,2 +1,2 @@
https://github.com/tsuru/gnuflag
https://github.com/juju/gnuflag
86b8c1b864aadcf9c94d67bc607ce3f19cbb9aa2
+10
View File
@@ -0,0 +1,10 @@
Gnuflag
-----
The gnuflag package is a fork of the Go standard library
package that supports GNU-compatible flag syntax.
In particular, it supports `--longflag` and `-l` single-character
flag syntax.
Full documentation can be found here: https://godoc.org/github.com/juju/gnuflag.
@@ -7,7 +7,7 @@ package gnuflag_test
import (
"bytes"
"fmt"
. "github.com/tsuru/gnuflag"
. "github.com/juju/gnuflag"
"os"
"reflect"
"sort"