TUN-4094: Don't read configuration file for access commands

This commit is contained in:
Igor Postelnik
2021-03-16 17:36:46 -05:00
parent 8c5498fad1
commit a34099724e
12 changed files with 35 additions and 44 deletions

View File

@@ -9,6 +9,10 @@ import (
)
func Action(actionFunc cli.ActionFunc) cli.ActionFunc {
return WithErrorHandler(actionFunc)
}
func ConfiguredAction(actionFunc cli.ActionFunc) cli.ActionFunc {
return WithErrorHandler(func(c *cli.Context) error {
if err := setFlagsFromConfigFile(c); err != nil {
return err