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

Add switch to output in object (default to status quo) #237

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tehfonz
Copy link

@tehfonz tehfonz commented Nov 21, 2023

and returning Data as Object for better filtering and manipulation

@pyashish
Copy link
Collaborator

@tehfonz This will break scripts for existing users who expect it in TF , can we add a flag ?

@tehfonz
Copy link
Author

tehfonz commented Nov 21, 2023

I can add a flag/switch.
Assume you would prefer the output as it currently is to be the default.
What would be your preference for the switch param?
Unformatted?
Untabled?
Happy for other suggestions.
Cheers!

@pyashish
Copy link
Collaborator

Correct, we did this to maintain parity with our C# based cmdlet.

-ReturnObject:true

@KavishreeShanmugam11 , we could add this to other cmdlets.

@tehfonz tehfonz changed the title Removing Formatting as Table Add switch to output in object (default to status quo) Nov 21, 2023
@{ Label = 'STARTED AT'; Expression = { $_.GetStartTime() }; Width = $columnWidth },
@{ Label = 'ESTIMATED TIME'; Expression = { $_.GetEstimatedTime() }; Width = $columnWidth },
@{ Label = 'COMPLETED(%)'; Expression = { $_.percentCompleted }; Width = $columnWidth }
if ($ReturnObject -eq $True) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

minor nit: $true

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.

None yet

2 participants