feat: flag action

This commit is contained in:
Wendell Sun
2022-02-15 23:49:41 +08:00
committed by Dan Buch
parent a2c3729797
commit e2e14ec6ef
19 changed files with 234 additions and 0 deletions

View File

@@ -122,6 +122,8 @@ type Flag interface {
// GetValue returns the flags value as string representation and an empty
// string if the flag takes no value at all.
GetValue() string
RunAction(*Context) error
}
// Countable is an interface to enable detection of flag values which support