rules_as_dep()
def rules_as_dep(rules, rule_name) -> stringReturns the rule as a dependency for the given rule name from the given rule group.
Args
rules: dict: The return value of rules_new()rule_name: string: The name of the rule to retrieve.
rules_as_rule()
def rules_as_rule(rules, rule_name) -> stringReturns the rule for the given rule name from the given rule group.
Args
rules: dict: The return value of rules_new()rule_name: string: The name of the rule to retrieve.
rules_name()
def rules_name(rules) -> stringReturns the name of the given rule group.
Args
rules: dict: The return value of rules_new()
rules_name_as_dep()
def rules_name_as_dep(rules) -> stringReturns the name of the given rule group.
Args
rules: dict: The return value of rules_new()
rules_new()
def rules_new(name, rules) -> dictReturns a new rule group with the given name and rules.
Args
name: string:rules: list:
Returns
dict[str, str]: A new rules object with the given name and rules.