Table of Contents

Class NpmRun

Namespace
DotNetDo
Assembly
DotNetDo.Core.dll

Runs a named package script and optionally forwards arguments after --.

public sealed record NpmRun : NpmWorkspaceCommand, IEquatable<ExecOptions>, IEquatable<ToolCommand>, IEquatable<ToolCommand<ExecResult>>, IEquatable<ExecToolCommand>, IEquatable<NpmWorkspaceCommand>, IEquatable<NpmRun>

Inheritance

Implements

Properties

Arguments

Arguments forwarded verbatim as individual semantic values to the script.

public IReadOnlyList<string> Arguments { get; init; }

Property Value

IReadOnlyList<string>

CommandParts

Gets every canonically ordered rendered command fragment.

protected override IReadOnlyList<string?> CommandParts { get; }

Property Value

IReadOnlyList<string?>

IfPresent

Succeeds when the named script is absent.

public bool IfPresent { get; init; }

Property Value

bool

Script

The package script name.

public string? Script { get; init; }

Property Value

string?

ScriptShell

The shell used to execute scripts.

public string? ScriptShell { get; init; }

Property Value

string?