feat: flag action

This commit is contained in:
Wendell Sun
2022-02-15 23:49:41 +08:00
parent 880a802dc8
commit 14366f7030
19 changed files with 257 additions and 0 deletions

View File

@@ -92,6 +92,7 @@ type Flag interface {
Apply(*flag.FlagSet) error
Names() []string
IsSet() bool
RunAction(*Context) error
}
// RequiredFlag is an interface that allows us to mark flags as required