cfg() is a helper function to get the configuration loaded from config.yaml, we pass it to subcommands because the file is not read until the Execute() call
()
| 87 | // cfg() is a helper function to get the configuration loaded from config.yaml, |
| 88 | // we pass it to subcommands because the file is not read until the Execute() call |
| 89 | func (*cliRoot) cfg() *csconfig.Config { |
| 90 | return csConfig |
| 91 | } |
| 92 | |
| 93 | // loadConfigFor loads the configuration file for the given sub-command. |
| 94 | // If the sub-command does not need it, it returns a default configuration. |
no outgoing calls
no test coverage detected