add built in docu

This commit is contained in:
2023-07-18 13:35:33 +02:00
parent a457a313b7
commit ab3954a6cb
7 changed files with 117 additions and 35 deletions

View File

@@ -26,3 +26,17 @@ func NewPrint(config internal.ActionConfig, c chan bool) (Action, error) {
return Printer{fmt.Sprintf("%v", message), c}, nil
}
func (p Printer) GetName() string {
return "Print"
}
func (p Printer) GetDescription() string {
return "When triggered prints the configured message to stdout"
}
func (p Printer) GetOptions() []internal.ConfigOption {
return []internal.ConfigOption{
{"message", "string", "Message that should be printed", "\"\""},
}
}