Class CompilerCommand
- Namespace
- Dassie.Extensions
- Assembly
- dc.dll
Provides an abstract base class for commands implementing ICompilerCommand.
public abstract class CompilerCommand : ICompilerCommand
- Inheritance
-
CompilerCommand
- Implements
- Inherited Members
- Extension Methods
Properties
Aliases
A list of alternative command names.
public virtual List<string> Aliases { get; }
Property Value
Command
The name used to invoke the command in the console.
public abstract string Command { get; }
Property Value
Description
A short description of the command.
public abstract string Description { get; }
Property Value
HelpDetails
Represents the information displayed on the command's help page.
public virtual CommandHelpDetails HelpDetails { get; }
Property Value
- CommandHelpDetails
Returns null by default.
Options
Advanced options for the command within the command loading system.
public virtual CommandOptions Options { get; }
Property Value
- CommandOptions
The options specified for the command.
Role
Specifies the role of the command.
public virtual CommandRole Role { get; }
Property Value
Methods
Invoke(string[])
The method that is executed when the command is invoked.
public abstract int Invoke(string[] args)
Parameters
argsstring[]Command-line arguments passed to the command, excluding the command name itself.
Returns
- int
The exit code.