Skip to content

Toolbox for scripters for common patterns #2729

Closed

Description

I would like to see classes shipping with PowerShell geared towards scripters implementing advanced functions.

With common patterns I mean path processing, with or w/o globbing, Include/Exclude filtering,
Progress management (percent complete/seconds remaining), creation of error records etc.

All these things that we write over and over again.

Activity

  1. rkeithhill commented on Nov 19, 2016

    @rkeithhill
    Collaborator

    You're right - it's a lot of boiler plate crap that is a PITA to have to write. I've added snippets for some of this (primarily path processing) to the PowerShell extension for VSCode. It seems like path processing is so common that there would be a specific PathParameterAttribute that would move all the grungy boiler plate code into PowerShell and provide your script's [string] or [string[]] parameter with all the properly resolved (tested for existence if the path must exist) and error appropriately (like when a "must exist" path doesn't exist). Ah, I can dream. :-)

  2. powercode commented on Dec 6, 2016

    @powercode
    CollaboratorAuthor

    Wow, this issue really attracted a lot of attention :)

    Is it better to open multiple issues with more specific suggestions?

  3. lzybkr commented on Dec 6, 2016

    @lzybkr
    Contributor

    Yeah, I'd say more specific issues would help drive something forwards.

  4. added
    Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassif
    on Dec 6, 2016
  5. powercode commented on Dec 6, 2016

    @powercode
    CollaboratorAuthor

    What would be a good namespace for such tools?
    SMA.Util?
    SMA.Common?
    SMA.SDK?

  6. ThomasNieto commented on Aug 18, 2023

    @ThomasNieto
    Contributor

    Similar issue #6745

  7. microsoft-github-policy-service commented on Feb 14, 2024

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if there is no further activity in 7 days, the issue will be closed automatically.

    Activity in this case refers only to comments on the issue. If the issue is closed and you are the author, you can re-open the issue using the button below. Please add more information to be considered during retriage. If you are not the author but the issue is impacting you after it has been closed, please submit a new issue with updated details and a link to this issue and the original.

  8. powercode commented on Mar 22, 2024

    @powercode
    CollaboratorAuthor

    Ping to keep alive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifNeeds-ReproThe issue author needs to provide repro steps.Resolution-No ActivityIssue has had no activity for 6 months or more

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions