mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-12 09:05:39 +00:00
Yay more unit tests
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user