Skip to content

Enums in Parameters #5

@Jaykul

Description

@Jaykul

Currently when I call a cmdlet through the API that takes enum values, the enum values show up as variables. E.g., when I call some command with an array of enum values:

Get-Something -Status @( ${Running}, ${Starting}, ${Finished})

What I want is:

Get-Something -Status @("Running", "Starting", "Finished")

Or maybe:

Get-Something -Status @([StatusType]::Running, [StatusType]::Starting, [StatusType]::Finished)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions