Skip to main content

Definition

Assembly: CloudNimble.EasyAF.Tools.dll Namespace: CloudNimble.EasyAF.Tools.Commands Inheritance: System.Object

Syntax

CloudNimble.EasyAF.Tools.Commands.CleanupCommand

Summary

Command for cleaning up build artifacts and lock files from the solution.

Remarks

This command recursively deletes bin, obj, TestResults directories and packages.lock.json files from the current directory and all subdirectories.

Examples

dotnet easyaf cleanup
dotnet easyaf cleanup --dry-run
dotnet easyaf cleanup --path "C:\Projects\MyApp"

Constructors

.ctor

Syntax

public CleanupCommand()

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

DryRun

Gets or sets a value indicating whether to show what would be deleted without actually deleting.

Syntax

public bool DryRun { get; set; }

Property Value

Type: bool

Path

Gets or sets the root directory to clean. Defaults to current directory.

Syntax

public string Path { get; set; }

Property Value

Type: string

Quiet

Gets or sets a value indicating whether to run in quiet mode with minimal output.

Syntax

public bool Quiet { get; set; }

Property Value

Type: bool

Methods

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

OnExecuteAsync

Executes the cleanup command.

Syntax

public System.Threading.Tasks.Task<int> OnExecuteAsync()

Returns

Type: System.Threading.Tasks.Task<int> Exit code (0 for success, 1 for error).

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?