Make modeless operation work more cleanly / remove implicit "main" mode.
This commit is contained in:
parent
acba227843
commit
288a07eb73
3 changed files with 7 additions and 4 deletions
|
@ -69,6 +69,9 @@ func (parser *ConfigParser) Parse(directory string) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (parser *ConfigParser) getModes() []string {
|
||||
return append([]string{"main"}, parser.config.Modes...)
|
||||
func (parser *ConfigParser) GetModes() []string {
|
||||
if len(parser.config.Modes) == 0 {
|
||||
return []string{"*"}
|
||||
}
|
||||
return parser.config.Modes
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue