Skip to content

Commit

Permalink
switch to subset of flag to insulate us from stdlib evolution
Browse files Browse the repository at this point in the history
  • Loading branch information
joefitzgerald committed Apr 1, 2021
1 parent f253998 commit ba255fd
Show file tree
Hide file tree
Showing 9 changed files with 694 additions and 4,122 deletions.
22 changes: 20 additions & 2 deletions fixtures/packagemode/flag.go
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)
}
174 changes: 0 additions & 174 deletions fixtures/packagemode/flagcustomfakesdir/flag.go

This file was deleted.

Loading

0 comments on commit ba255fd

Please sign in to comment.