-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch to subset of flag to insulate us from stdlib evolution
- Loading branch information
1 parent
f253998
commit ba255fd
Showing
9 changed files
with
694 additions
and
4,122 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,23 @@ | ||
package packagemode | ||
|
||
import "flag" | ||
|
||
//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate | ||
//counterfeiter:generate -p flag | ||
//counterfeiter:generate -o flagcustomfakesdir -p flag | ||
//counterfeiter:generate -p github.com/maxbrunsfeld/counterfeiter/v6/fixtures/packagemode | ||
//counterfeiter:generate -o flagcustomfakesdir -p github.com/maxbrunsfeld/counterfeiter/v6/fixtures/packagemode | ||
|
||
func Arg(arg1 int) string { | ||
return flag.Arg(arg1) | ||
} | ||
|
||
func Args() []string { | ||
return flag.Args() | ||
} | ||
|
||
func Bool(arg1 string, arg2 bool, arg3 string) *bool { | ||
return flag.Bool(arg1, arg2, arg3) | ||
} | ||
|
||
func BoolVar(arg1 *bool, arg2 string, arg3 bool, arg4 string) { | ||
flag.BoolVar(arg1, arg2, arg3, arg4) | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.