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