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

vdk-control-cli: pass the printer class in JobDeploy creation and add additional memory printer #2477

Merged
merged 7 commits into from
Jul 26, 2023

Conversation

duyguHsnHsn
Copy link
Collaborator

@duyguHsnHsn duyguHsnHsn commented Jul 26, 2023

What:Introduced an enhanced feature, the MemoryPrinter, it conserves text for future use, instead of instant printing. Along with this, adapted the JobDeploy class to receive a printer object instead of an OutputFormat enum.

Why:
The inclusion of MemoryPrinter caters to use cases where an output needs to be stored for later representation, such as in a Jupyter UI. This modification in the JobDeploy class enables the printer object's use beyond JobDeploy: the printer can be initialised first, utilised within JobDeploy, and then accessed again to retrieve the stored output. This stops the need for accessing private fields within JobDeploy and promotes better coding practices.

Signed-off-by: Duygu Hasan hduygu@vmware.com

@duyguHsnHsn duyguHsnHsn marked this pull request as ready for review July 26, 2023 11:10
@duyguHsnHsn duyguHsnHsn changed the title vdk-control-cli: pass the printer class in JobDeploy creation[DRAFT] vdk-control-cli: pass the printer class in JobDeploy creation Jul 26, 2023
@duyguHsnHsn duyguHsnHsn changed the title vdk-control-cli: pass the printer class in JobDeploy creation vdk-control-cli: pass the printer class in JobDeploy creation and add additional memory printer Jul 26, 2023
Copy link
Contributor

@yonitoo yonitoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@duyguHsnHsn duyguHsnHsn merged commit 64c8696 into main Jul 26, 2023
8 checks passed
@duyguHsnHsn duyguHsnHsn deleted the person/hduygu/output-printer-modifications branch July 26, 2023 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants