code: def list_stacks(stack_ref: List[str], all: bool, remote: str, region: str,
                  watch: int, output: str):
      
      lizzy = setup_lizzy_client(remote)
      stack_references = parse_stack_refs(stack_ref)
  
      while True:
          rows = []
          for stack in lizzy.get_stacks(stack_references, region=region):
              creation_time = dateutil.parser.parse(stack['creation_time'])
              rows.append({'stack_name': stack['stack_name'],
                           'version': stack['version'],
                           'status': stack['status'],
                           'creation_time': creation_time.timestamp(),
                           'description': stack['description']})
  
          rows.sort(key=lambda x: (x['stack_name'], x['version']))
          with OutputFormat(output):
              print_table(
                  'stack_name version status creation_time description'.split(),
                  rows, styles=STYLES, titles=TITLES)
  
          if watch:  # pragma: no cover
              time.sleep(watch)
              click.clear()
          else:
              break
docs: List Lizzy stacks