Provide rendering utilities to OperationResult
#629
Labels
feature/cli
Issues or features related to CLI operations.
help wanted
Extra attention is needed
triage/enhancement
New feature or request
triage/feature
New requested feature.
Description
When an
OperationResult
is obtained fromweaver.cli.WeaverClient
, the__str__
representation simply returnsOperationresult
, which is not intuitive for users. One must doprint(repr(result))
to obtain the better representation implemented by__repr__
.The
__str__
should probably do something similar to what__repr__
does, but could also potentially add more details, such as the returned JSON/XML/HTML/text body if applicable. Currently, a text-form representation of that body is defined intext
property.The text was updated successfully, but these errors were encountered: