Skip to content

Implement -PassThru for all Set-* cmdlets #217

@TylerLeonhardt

Description

@TylerLeonhardt

Feature Idea Summary

It's usually good practice for Set-* cmdlets to output nothing and then offer a -PassThru to output the result.

This allows output to not be as noisy and so that you don't have to pipe to Out-Null

Feature Idea Additional Details

All this would mean is:

  • Adding a -PassThru parameter to all Set-* functions
  • do something like this:
$result = Invoke-GHRestMethod @params
if ($PSBoundParameters.ContainsKey('PassThru'))
{
    $result
}

Requested Assignment

I'm just suggesting this idea, at this time. I'm not planning on implementing it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking changeThis includes a change in existing published module behavior.discussionWe are looking for additional community feedback on this topic before proceeding further.enhancementAn issue or pull request introducing new functionality to the project.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions