forked from urfave/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to add build contraints to not compile in yaml support
in the case the golang version is less than golang 1.2
- Loading branch information
1 parent
0c31022
commit d3b02e4
Showing
10 changed files
with
353 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package inputfilesupport | ||
package altsrc | ||
|
||
import ( | ||
"flag" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package inputfilesupport | ||
package altsrc | ||
|
||
import ( | ||
"reflect" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package altsrc | ||
|
||
import ( | ||
"time" | ||
|
||
"github.com/codegangsta/cli" | ||
) | ||
|
||
// InputSourceContext is an interface used to allow | ||
// other input sources to be implemented as needed. | ||
type InputSourceContext interface { | ||
Int(name string) (int, error) | ||
Duration(name string) (time.Duration, error) | ||
Float64(name string) (float64, error) | ||
String(name string) (string, error) | ||
StringSlice(name string) ([]string, error) | ||
IntSlice(name string) ([]int, error) | ||
Generic(name string) (cli.Generic, error) | ||
Bool(name string) (bool, error) | ||
BoolT(name string) (bool, error) | ||
} |
Oops, something went wrong.