Merge pull request #512 from grubernaut/f-update-altsrc-import-v2

Update altsrc imports to gopkg.in
This commit is contained in:
Jesse Szwedko
2016-08-28 13:23:17 -07:00
committed by GitHub
12 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"os" "os"
"strconv" "strconv"
"github.com/urfave/cli" "gopkg.in/urfave/cli.v2"
) )
// FlagInputSourceExtension is an extension interface of cli.Flag that // FlagInputSourceExtension is an extension interface of cli.Flag that
+1 -1
View File
@@ -3,7 +3,7 @@ package altsrc
import ( import (
"flag" "flag"
"github.com/urfave/cli" "gopkg.in/urfave/cli.v2"
) )
// WARNING: This file is generated! // WARNING: This file is generated!
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/urfave/cli" "gopkg.in/urfave/cli.v2"
) )
type testApplyInputSource struct { type testApplyInputSource struct {
+1 -1
View File
@@ -3,7 +3,7 @@ package altsrc
import ( import (
"time" "time"
"github.com/urfave/cli" "gopkg.in/urfave/cli.v2"
) )
// InputSourceContext is an interface used to allow // InputSourceContext is an interface used to allow
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"os" "os"
"testing" "testing"
"github.com/urfave/cli" "gopkg.in/urfave/cli.v2"
) )
const ( const (
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/urfave/cli" "gopkg.in/urfave/cli.v2"
) )
// NewJSONSourceFromFlagFunc returns a func that takes a cli.Context // NewJSONSourceFromFlagFunc returns a func that takes a cli.Context
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/urfave/cli" "gopkg.in/urfave/cli.v2"
) )
// MapInputSource implements InputSourceContext to return // MapInputSource implements InputSourceContext to return
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"os" "os"
"testing" "testing"
"github.com/urfave/cli" "gopkg.in/urfave/cli.v2"
) )
func TestCommandTomFileTest(t *testing.T) { func TestCommandTomFileTest(t *testing.T) {
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"reflect" "reflect"
"github.com/BurntSushi/toml" "github.com/BurntSushi/toml"
"github.com/urfave/cli" "gopkg.in/urfave/cli.v2"
) )
type tomlMap struct { type tomlMap struct {
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"os" "os"
"testing" "testing"
"github.com/urfave/cli" "gopkg.in/urfave/cli.v2"
) )
func TestCommandYamlFileTest(t *testing.T) { func TestCommandYamlFileTest(t *testing.T) {
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"net/url" "net/url"
"os" "os"
"github.com/urfave/cli" "gopkg.in/urfave/cli.v2"
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
) )
+2
View File
@@ -193,6 +193,8 @@ def _write_altsrc_flag_types(outfile, types):
_fwrite(outfile, """\ _fwrite(outfile, """\
package altsrc package altsrc
import "gopkg.in/urfave/cli.v2"
// WARNING: This file is generated! // WARNING: This file is generated!
""") """)