Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
widths=args.width,
json=args.json,
yaml=args.yaml,
attribute_transform_functions=self.attribute_transform_functions,
)
else:
self.print_output(
instances,
table.MultiColumnTable,
attributes=args.attr,
widths=args.width,
attribute_transform_functions=self.attribute_transform_functions,
)
if args.last and count and count > args.last:
table.SingleRowTable.note_box(self.resource_name, args.last)
attributes=args.attr,
widths=args.width,
json=args.json,
yaml=args.yaml,
attribute_transform_functions=self.attribute_transform_functions,
)
else:
self.print_output(
reversed(instances),
table.MultiColumnTable,
attributes=args.attr,
widths=args.width,
attribute_transform_functions=self.attribute_transform_functions,
)
if args.last and count and count > args.last:
table.SingleRowTable.note_box(self.resource_name, args.last)
if args.json or args.yaml:
self.print_output(reversed(instances), table.MultiColumnTable,
attributes=args.attr, widths=args.width,
json=args.json,
yaml=args.yaml,
attribute_transform_functions=self.attribute_transform_functions)
else:
# Include elapsed time for running executions
instances = format_execution_statuses(instances)
self.print_output(reversed(instances), table.MultiColumnTable,
attributes=args.attr, widths=args.width,
attribute_transform_functions=self.attribute_transform_functions)
if args.last and count and count > args.last:
table.SingleRowTable.note_box(self.resource_name, args.last)
widths=args.width,
json=args.json,
yaml=args.yaml,
attribute_transform_functions=self.attribute_transform_functions,
)
else:
self.print_output(
instances,
table.MultiColumnTable,
attributes=args.attr,
widths=args.width,
attribute_transform_functions=self.attribute_transform_functions,
)
if args.last and count and count > args.last:
table.SingleRowTable.note_box(self.resource_name, args.last)
if args.json or args.yaml:
self.print_output(
instances,
table.MultiColumnTable,
attributes=args.attr,
widths=args.width,
json=args.json,
yaml=args.yaml,
)
else:
self.print_output(
instances, table.MultiColumnTable, attributes=args.attr, widths=args.width
)
if args.last and count and count > args.last:
table.SingleRowTable.note_box(self.resource_name, args.last)
def run_and_print(self, args, **kwargs):
instances, count = self.run(args, **kwargs)
self.print_output(
reversed(instances),
table.MultiColumnTable,
attributes=args.attr,
widths=args.width,
json=args.json,
yaml=args.yaml,
)
if args.last and count and count > args.last:
table.SingleRowTable.note_box(self.resource_name, args.last)
if args.json or args.yaml:
self.print_output(
reversed(instances),
table.MultiColumnTable,
attributes=args.attr,
widths=args.width,
json=args.json,
yaml=args.yaml,
attribute_transform_functions=self.attribute_transform_functions,
)
else:
self.print_output(
instances, table.MultiColumnTable, attributes=args.attr, widths=args.width
)
if args.last and count and count > args.last:
table.SingleRowTable.note_box(self.resource_name, args.last)