PnpmTool<TSettings> Class

Summary

Base class for all pnpm tools.
graph BT Type-->Base0["Tool<PnpmSettings>"] Type["PnpmTool<TSettings>"] class Type type-node Derived0["PnpmList"]-->Type click Derived0 "/api/Cake.Pnpm.List/PnpmList" Derived1["PnpmInstaller"]-->Type click Derived1 "/api/Cake.Pnpm.Install/PnpmInstaller" Derived2["PnpmPrune"]-->Type click Derived2 "/api/Cake.Pnpm.Prune/PnpmPrune" Derived3["PnpmLicenses"]-->Type click Derived3 "/api/Cake.Pnpm.Licenses/PnpmLicenses" Derived4["PnpmRun"]-->Type click Derived4 "/api/Cake.Pnpm.Run/PnpmRun" Derived5["PnpmUpdate"]-->Type click Derived5 "/api/Cake.Pnpm.Update/PnpmUpdate" Derived6["PnpmRebuild"]-->Type click Derived6 "/api/Cake.Pnpm.Rebuild/PnpmRebuild" Derived7["PnpmImport"]-->Type click Derived7 "/api/Cake.Pnpm.Import/PnpmImport" Derived8["PnpmAdd"]-->Type click Derived8 "/api/Cake.Pnpm.Add/PnpmAdd" Derived9["PnpmRemove"]-->Type click Derived9 "/api/Cake.Pnpm.Remove/PnpmRemove" Derived10["PnpmExec"]-->Type click Derived10 "/api/Cake.Pnpm.Exec/PnpmExec" Derived11["PnpmUnlink"]-->Type click Derived11 "/api/Cake.Pnpm.Unlink/PnpmUnlink" Derived12["PnpmLink"]-->Type click Derived12 "/api/Cake.Pnpm.Link/PnpmLink" Derived13["PnpmOutdated"]-->Type click Derived13 "/api/Cake.Pnpm.Outdated/PnpmOutdated" Derived14["PnpmAudit"]-->Type click Derived14 "/api/Cake.Pnpm.Audit/PnpmAudit" Derived15["PnpmStore"]-->Type click Derived15 "/api/Cake.Pnpm.Store/PnpmStore"

Syntax

public abstract class PnpmTool<TSettings> : Tool<PnpmSettings> where TSettings : PnpmSettings

Type Parameters

Name Description
TSettings The settings type.

Constructors

Properties

Name Value Summary
CakeLog ICakeLog
Cake log instance.

Methods

Name Value Summary
GetArguments(TSettings) ProcessArgumentBuilder
Builds the arguments for npm.
GetToolExecutableNames() IEnumerable<string>
Gets the possible names of the tool executable.
GetToolName() string
Gets the name of the tool.
RunCore(TSettings, ProcessSettings, Action<IProcess>) void
Runs npm.
RunCore(TSettings) void
Runs npm.

Extension Methods

Name Value Summary
Dump<PnpmTool<TSettings>>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<PnpmTool<TSettings>>(PnpmTool<TSettings>[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<PnpmTool<TSettings>>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<PnpmTool<TSettings>>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<PnpmTool<TSettings>>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<PnpmTool<TSettings>>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin