PrintMessage#

class wattson.services.deployment.cli.messages.print_message.PrintMessage(msg_dict: dict | None = None)#

Bases: CLIMessage

A message that contains a printing command, mostly in server to client communication. Messages can be formatted in different ways, e.g. as table or plain text.

Methods

__init__

to_dict

to_str

returns the message representation as string.

__init__(msg_dict: dict | None = None)#
to_str(width: int = 0)#

returns the message representation as string. If a width is given, certain formatting options will respect this as a limit for object widths.

Parameters:

width (int, optional) – (Default value = 0)