@ -4,6 +4,7 @@ package altsrc
import (
"flag"
"github.com/urfave/cli/v2"
)
@ -3,12 +3,13 @@ package altsrc
"fmt"
"os"
"runtime"
"strings"
"testing"
"time"
type testApplyInputSource struct {
@ -1,8 +1,9 @@
package altsrc
// InputSourceContext is an interface used to allow
@ -2,10 +2,11 @@ package altsrc
"io/ioutil"
const (
@ -3,11 +3,12 @@ package altsrc
"encoding/json"
"io"
// NewJSONSourceFromFlagFunc returns a func that takes a cli.Context
"reflect"
// MapInputSource implements InputSourceContext to return
func TestCommandTomFileTest(t *testing.T) {
func TestCommandYamlFileTest(t *testing.T) {