devops.utils

Top level package for utility functions in mstd checks.

devops.utils.check_key_sequence_ordered(key_sequence, line, key_delimiter=' ')[source]

Check if keys in key_sequence appear in order on the given line.

Parameters:
  • key_sequence (str) – The sequence of keys to check for order as a string.

  • line (str) – The line of text to check.

  • key_delimiter (str) – The delimiter used to find the keys.

Returns:

ResultType – Result of the check, Error if keys are out of order, Ok otherwise

Return type:

ResultType

devops.utils.mstd_print(*objects, sep=' ', end='\n', file=None, flush=False)

Print object(s) supplied via positional arguments. This function has an identical signature to the built-in print. For more advanced features, see the Console class.

Args:

sep (str, optional): Separator between printed objects. Defaults to “ “. end (str, optional): Character to write at end of output. Defaults to “\n”. file (IO[str], optional): File to write to, or None for stdout. Defaults to None. flush (bool, optional): Has no effect as Rich always flushes output. Defaults to False.

Parameters:
Return type:

None

Modules

rich

Utility module for rich text printing.

utils

Module defining utility functions for mstd checks.