Skip to content

Consider adding PositionalBinding=$false for some functions #219

Open
@HowardWolosky

Description

@HowardWolosky

Feature Idea Summary

This comes out of a comment thread in #192. We've seen a number of times that users who forget to provide a - for the parameter name when calling Set-GitHubConfiguration end up mistakingly changing the configuration for one or more incorrect settings. The idea here is to use PositionalBinding=$false to disable positional binding for at least that function, if not others.

Feature Idea Additional Details

The concern with this idea is that the docs seem to imply that this started with PS5, but this module needs to continue to support PS4+ due to some internal requirements. If someone can verify that PS4 supports this configuration property, then we'd be safe to continue with it. That verification must happen first though.

# Minimum version of the Windows PowerShell engine required by this module
PowerShellVersion = '4.0'

Requested Assignment

I'm just suggesting this idea, but don't want to implement it.

Operating System

OsName               : Microsoft Windows 10 Pro
OsOperatingSystemSKU : 48
OsArchitecture       : 64-bit
WindowsVersion       : 1909
WindowsBuildLabEx    : 18362.1.amd64fre.19h1_release.190318-1202
OsLanguage           : en-US
OsMuiLanguages       : {en-US}

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.0.1
PSEdition                      Core
GitCommitId                    7.0.1
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module Version

Running: 0.14.0
Installed:

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionWe are looking for additional community feedback on this topic before proceeding further.enhancementAn issue or pull request introducing new functionality to the project.help wantedAnyone in the community is welcome to do this workup for grabsAnyone in the community is welcome to do this work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions