All files / src/utils/conditionals/typeOptions bash.ts

0% Statements 0/3
100% Branches 0/0
100% Functions 0/0
0% Lines 0/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31                                                             
import { OperatorOptions } from "../types/operatorOptionTypes.ts";
import { RuleTypes } from "../types/ruleTypes.ts";
 
export const bashCommandOutputOptions = [
  {
    id: RuleTypes.GREP,
    label: "Grep Pattern exists",
    defaultValues: {
      threshold: 1,
      operator: OperatorOptions.GREATER_THAN_EQUAL_O,
      case_sensitive: false,
    },
  },
  {
    id: RuleTypes.NO_GREP,
    label: "Grep Pattern does not exist",
    defaultValues: {
      threshold: 0,
      operator: OperatorOptions.EQUAL_O,
      case_sensitive: false,
    },
  },
  {
    id: RuleTypes.GREP_COUNT,
    label: "Count occurrences of Grep Pattern",
    defaultValues: {
      case_sensitive: false,
    },
  },
];