Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide rendering utilities to OperationResult #629

Open
fmigneault opened this issue May 6, 2024 · 0 comments
Open

Provide rendering utilities to OperationResult #629

fmigneault opened this issue May 6, 2024 · 0 comments
Assignees
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.

Comments

@fmigneault
Copy link
Collaborator

Description

When an OperationResult is obtained from weaver.cli.WeaverClient, the __str__ representation simply returns Operationresult, which is not intuitive for users. One must do print(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 in text property.

@fmigneault fmigneault added triage/enhancement New feature or request triage/feature New requested feature. feature/cli Issues or features related to CLI operations. labels May 6, 2024
@fmigneault fmigneault self-assigned this May 6, 2024
@fmigneault fmigneault added the help wanted Extra attention is needed label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

1 participant