Yay more unit tests

This commit is contained in:
jamesread
2021-11-04 00:30:36 +00:00
parent 3aa7c97bfb
commit 78efc5c94e
7 changed files with 158 additions and 17 deletions

View File

@@ -9,3 +9,13 @@ func (cfg *Config) FindAction(actionTitle string) *Action {
return nil
}
func (action *Action) FindArg(name string) *ActionArgument {
for _, arg := range action.Arguments {
if arg.Name == name {
return &arg
}
}
return nil
}