API Reference

Namespaces

DotMake.CommandLine This is the root namespace of this library, it includes the CLI attributes and CLI parser/runner.

The main classes in this namespace are:

  • CliCommandAttribute is the attribute which specifies a class that represents a command which is a specific action that the command line application performs.
  • CliOptionAttribute is the attribute which specifies a class property that represents an option which is a named parameter and a value for that parameter, that is used on the command line.
  • CliArgumentAttribute is the attribute which specifies a class property that represents an argument which is a value that can be passed on the command line to a command or an option.
  • CliDirectiveAttribute is the attribute which specifies a class property that represents a directive which is a syntactic element, that is used on the command line.
  • Cli is the class which provides methods for parsing command line input and running an indicated command.
  • CliSettings is the class which represents the settings used by the Cli.
  • CliTheme is the class which represents the theme used by the Cli. These color and formatting option are mainly used by the help output.
  • CliParser is the class which represents a CLI parser configured for a specific command with grammar and behaviors.
  • CliContext is the class which supports command invocation by providing access to parse results and other services.
  • CliResult is the class which describes the results of parsing a command line input based on a specific parser configuration and provides methods for binding the result to definition classes.