package
0.0.0-20250210170423-3d97734d3a04
Repository: https://github.com/target/flottbot.git
Documentation: pkg.go.dev

# Functions

CanTrigger ensures the user is allowed to use the respective rule.
ExecArgTokenizer goes through a string and tokenizes as parameters for use when executing a script (respecting empty arguments).
GetRoomIDs helps find a room by name, if we have 'cached' it.
IsSet is a helper function to check whether any of the supplied strings are empty or unsubstituted (ie.
MakeNiceJSON exists to address https://github.com/go-yaml/yaml/issues/139.
Match checks given value against given pattern.
RuleArgTokenizer goes through a string and tokenizes as parameters for use when identifying rules to be triggered (ignoring empty arguments).
Substitute checks given value for variables and looks them up to determine whether we have a matching replacement available, either in the supplied map, or from environment variables.