How to use the st2client.formatters.table.SingleRowTable.note_box function in st2client

To help you get started, we’ve selected a few st2client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github StackStorm / st2 / st2client / st2client / commands / trace.py View on Github external
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)
github StackStorm / st2 / st2client / st2client / commands / triggerinstance.py View on Github external
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)
github StackStorm / st2 / st2client / st2client / commands / action.py View on Github external
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)
github StackStorm / st2 / st2client / st2client / commands / keyvalue.py View on Github external
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)
github StackStorm / st2 / st2client / st2client / commands / rule.py View on Github external
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)
github StackStorm / st2 / st2client / st2client / commands / inquiry.py View on Github external
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)
github StackStorm / st2 / st2client / st2client / commands / rule_enforcement.py View on Github external
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)