Skip to content

Doc Bug in AddScript API #15537

Closed
Closed

Description

Copied from MicrosoftDocs/PowerShell-Docs#4472

This is a bug in the API documentation for AddScript(). The API documentation comes from /// comments in the source code to this must be fixed in the source code. The example shown in the docs is using AddCommand() instead of AddScript. Also the line break and indentation could be improved for readability.

Both overloads are affected:

/// <code>
/// PSCommand command = new PSCommand("get-process").
/// AddCommand("foreach { $_.Name }", true);
/// </code>

/// <code>
/// PSCommand command = new PSCommand("get-process").
/// AddCommand("foreach { $_.Name }", true);
/// </code>

Activity

  1. added
    Needs-Triage
    on Jun 7, 2021
  2. added
    First-Time-Issue
    Issue-Code Cleanup
    Up-for-Grabs
    and removed
    Needs-Triage
    on Jun 8, 2021
  3. added
    WG-DevEx-SDK
    on Jun 8, 2021
  4. iSazonov commented on Jun 11, 2021

    @iSazonov
    Collaborator

    @octos4murai Feel free to pull PR.

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

    First-Time-IssueIssue-Code CleanupResolution-FixedUp-for-GrabsWG-DevEx-SDK

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions