LibManTool<TSettings> Class

Summary

Base class for all LibMan tools.
graph BT Type-->Base0["Tool<TSettings>"] Type["LibManTool<TSettings>"] class Type type-node Derived0["LibManCleanTool"]-->Type click Derived0 "/api/Cake.LibMan.Clean/LibManCleanTool" Derived1["LibManRestoreTool"]-->Type click Derived1 "/api/Cake.LibMan.Restore/LibManRestoreTool" Derived2["LibManInstaller"]-->Type click Derived2 "/api/Cake.LibMan.Install/LibManInstaller" Derived3["LibManUninstaller"]-->Type click Derived3 "/api/Cake.LibMan.Uninstall/LibManUninstaller" Derived4["LibManCacheCleanTool"]-->Type click Derived4 "/api/Cake.LibMan.Cache/LibManCacheCleanTool"

Syntax

public abstract class LibManTool<TSettings> : Tool<TSettings> where TSettings : LibManSettings

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 libman.
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 libman.
RunCore(TSettings) void
Runs libman.

Extension Methods

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