Skip to content

Make commands output agnostic #391

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

Merged
merged 16 commits into from
Oct 9, 2019
Merged

Make commands output agnostic #391

merged 16 commits into from
Oct 9, 2019

Conversation

masci
Copy link
Contributor

@masci masci commented Sep 3, 2019

Continuation of #345, extend the PrintResult API usage to all those commands that need a complex output rendering.

To reduce boilerplate, feedback.Print was changed so that it will serialize strings to JSON when needed; this way, all those commands that don't need to provide a complex output can simply do feedback.Print("message") without caring of the output format, see version for example.

@masci masci force-pushed the massi/output-reprise branch from 3fc8926 to 0475288 Compare September 20, 2019 13:54
@masci masci merged commit 94a5eeb into master Oct 9, 2019
@masci masci deleted the massi/output-reprise branch October 9, 2019 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants