Skip to content

Conversation

tehfonz
Copy link

@tehfonz tehfonz commented Nov 21, 2023

and returning Data as Object for better filtering and manipulation

@pyashish
Copy link
Contributor

@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
Contributor

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
Contributor

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.

2 participants