simplelogincmd.cli.util.output.display_model_list

display_model_list(models: list, fields: list[str], pager_threshold: int, header: bool = True) None

Print a simple table detailing each item to stdout

Parameters:
  • models (list[Object]) – Series of Object to be included in the output

  • fields (list[str]) – The field names to display for each item, in left- to-right order

  • pager_threshold – Display the items via a pager if the output consists of this many or more entries, including the heading. A value of 0 indicates not to use the pager.

  • header (bool) – Whether to include a header of field names as the first line, defaults to True

Return type:

None