YarnAddSettings Class

Summary

Yarn add options
Assembly
Cake.Yarn.dll
Namespace
Cake.Yarn
Base Types
graph BT Type-->Base0["YarnRunnerSettings"] click Base0 "/api/Cake.Yarn/YarnRunnerSettings" Base0-->Base1["ToolSettings"] Type["YarnAddSettings"] class Type type-node

Syntax

public class YarnAddSettings : YarnRunnerSettings

Constructors

Name Summary
YarnAddSettings() Yarn "add" settings

Properties

Name Value Summary
Command string
The command being ran
Inherited from YarnRunnerSettings
Global bool
'global' option
Packages IEnumerable<string>
List of packages to install

Methods

Name Value Summary
EvaluateCore(ProcessArgumentBuilder) void
Evaluate options
Globally(bool) YarnAddSettings
Applies the --global parameter
Package(string, string, string) YarnAddSettings
install a package by name, with optional version/tag and scope
Package(Uri) YarnAddSettings
Install a package from the given url

Extension Methods

Name Value Summary
Dump<YarnAddSettings>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<YarnAddSettings>(YarnAddSettings[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<YarnAddSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<YarnAddSettings>(string) void
Requires the Cake.Issues addin
ThrowIfNull<YarnAddSettings>(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<YarnAddSettings>(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
ToStringWithNullMarkup() string
Requires the Cake.Issues addin