All Identifiers

Name Unit Description
AppendToArray Command.Helpers

Appends a string to an array of string automatically increasing its size

Black Command.Colors

 

Blue Command.Colors

 

Brown Command.Colors

 

ChangeConsoleColor Command.Colors

Changes default console color for text output.

ColorConsoleOutput Command.Builder

Standard callback procedure that outputs the given text to the console using colors. In this implementation it only mirrors the use of the Write function, but before that it changes the color of the console. It is expected for this type of callback that the output is performed without a line break at the end of it. The original color is not restored impacting future outputs.

Cyan Command.Colors

 

DarkColorTheme Command.Colors

Suggested dark color theme. Good to use with a console that has a dark background. Can be assigned to CommandBuilder's ColorTheme property.

DarkGray Command.Colors

 

GetArgumentList Command.Usage

Returns an argument list configured for CommandBuilder as a simple string. It will be used to display argument usage info to the user.

Green Command.Colors

 

IArgument Command.Interfaces

Interface representing an argument that can be registered in CommandBuilder for later use by the user.

ICommand Command.Interfaces

Interface representing a command that can be registered in CommandBuilder for later use by the user.

ICommandBuilder Command.Interfaces

Interface that represents the CommandBuilder, its main purpose is to configure the arguments, commands and options accepted by the tool. Central point of the library, responsible for comparing and validating the parameters passed via the command line against the configured parameters, later executing the callback linked to the localized command.

IOption Command.Interfaces

Interface representing an option that can be set as expected for a command.

IValidatorBase Command.Interfaces

Base interface for any validation that needs to be implemented. Specification validations need to inherit from this interface by convention from this library. It already has control for the successor validator as well as its automatic call at the appropriate time.

IValidatorContext Command.Interfaces

Interface that groups all validators, as well as establishes the validation order.

LightBlue Command.Colors

 

LightColorTheme Command.Colors

Suggested light color theme. Good to use with a console that has a white background. Can be assigned to CommandBuilder's ColorTheme property.

LightCyan Command.Colors

 

LightGray Command.Colors

 

LightGreen Command.Colors

 

LightMagenta Command.Colors

 

LightRed Command.Colors

 

Magenta Command.Colors

 

OutputPalleteColor Command.Colors

This command outputs text for each color represented by the constant colors in this unit. You may add this command to the application using TCommandBuilder.AddCommand, so you can check how a given color is displayed on console. There is sample app called colors on the source code repository that shows how this command works.

Red Command.Colors

 

Registry Command.Usage

Configure UsageCommand with standard parameters.

Registry Command.Version

Configure VersionCommand with standard parameters.

RemoveStartingDashes Command.Helpers

Removes the first "-" and second "-" characters if found from the string passed as a parameter. Returns a new string without these characters.

SplitOptionAndValue Command.Helpers

Given an option with value, split the option in two parts: the option name and the value. The option name is the part before the "=" character. The value is the part after the "=" character. If the option doesn't contain the "=" character, the value is empty. The function returns the value and keeps the only the option name in the parameter AOption.

StandardConsoleInputLn Command.Builder

Standard callback function to read input from user. Automatically configured on CommandBuilder startup.

StandardConsoleOutput Command.Builder

Standard callback procedure that outputs the given text to the console. In this implementation it just mirrors the use of the WriteLn function. It is expected for this type of callback that the output will be performed with a line break at the end of it.

StartColorTheme Command.Colors

Initial color themes available from the library. Can be assigned to CommandBuilder's ColorTheme property.

StartupColor Command.Colors

Contains the initial color detected by the application before any color change.

TAddCommandCallback Command.Interfaces

Callback function signature need to add a command using the overloaded version of CommandBuilder.AddCommand. This signature is different to avoid collision with the TCommandCallback signature. The return result is not required.

TArgument Command.Builder

Class that implements the IArgument interface that represents an argument that can be registered in CommandBuilder for later use by the user.

TArgumentConstraint Command.Interfaces

Enumerated type that defines constraints that apply on arguments. It is used to indicate to the CommandBuilder the rules for using arguments, allowing its validation to be done automatically.

TColorTheme Command.Interfaces

Color theme structure used across the library. All fields in this record represent colors that can be defined from the color constants found in the Command.Colors unit.

TCommand Command.Builder

Class that implements the ICommand interface that represents a command that can be registered in CommandBuilder for later use by the user.

TCommandApp Command.App

This class allows you to define which arguments, commands, and options will be accepted as parameters by executing the application via the command line. For that it is necessary to use the TCommandApp.CommandBuilder property.

TCommandBuilder Command.Builder

Class that implements the ICommandBuilder interface, its main purpose is to configure the arguments, commands and options accepted by the tool. Central point of the library, responsible for comparing and validating the parameters passed by the command line with the configured parameters, later executing the callback linked to the localized command.

TCommandCallback Command.Interfaces

Callback procedure signature that represents a command defined in the program.

TCommandConstraint Command.Interfaces

Enumerated type that defines constraints that apply on commands. It is used to indicate to the CommandBuilder the rules for using the command, allowing its validation to be done automatically.

TCommandConstraints Command.Interfaces

Set type of constraints, as they can have their combined use when configuring a command.

TConfiguredCommandWithCallback Command.Validator

Returns an error if a command was configured without a callback

TDuplicateArgumentValidator Command.Validator

Returns an error if a command has been passed twice. A duplicity is accepted if a command accepts another command as an argument through the ccNoArgumentsButCommands constraint.

TDuplicateOptionValidator Command.Validator

Returns an error if an option was passed twice.

TInputLnCallback Command.Interfaces

Callback procedure signature used by the library to capture user input. A default callback is provided by the library, but it can be overridden for testing purposes primarily. Should return user input.

TOption Command.Builder

Class that implements the IOption interface that represents an option that can be configured as expected for a command.

TOptionConstraint Command.Interfaces

Enumerated type that defines constraints that apply on options. It is used to indicate to the CommandBuilder the rules for using options, allowing its validation to be done automatically.

TOutputCallback Command.Interfaces

Callback procedure signature that is intended to output text to the console, or other desired output. The library provides a standard callback that simply calls WriteLn, but it can be overridden so that the output is redirected to a file, a test function, etc.

TOutputColorCallback Command.Interfaces

Callback procedure signature that is intended to output text to the console usings colors. The library provides a standard callback that simply calls Write before change console color, but it can be overridden so that the output is redirected to a file, a test function, etc.

TProvidedArgumentsAreNotRequired Command.Validator

Returns an error if not required arguments were passed to the command and the constraint ccNoArgumentsButCommands is active for the command.

TProvidedArgumentsAreNotValid Command.Validator

Returns an error if there are commands configured for the CommandBuilder and arguments were passed via the command line, but no command was found.

TProvidedArgumentsExceedsAcceptedLimit Command.Validator

Returns an error if more arguments were passed than what was set for the command.

TSelectedCommandDoesNotAcceptCommandAsArgument Command.Validator

Returns an error if a command was passed to a command that does ot accept this type of parameter. Only works if ccNoArgumentsButCommands constraint is set for the command.

TSelectedCommandRequiresNoArguments Command.Validator

Returns an error if an argument has been passed to a command that does not require parameters. Only works if ccNoParameters is set for the command.

TSelectedCommandRequiresOneArguments Command.Validator

Returns an error if no argument has been passed to a command that requires parameters. Only works if ccRequiresOneArgument is set for the command.

TSelectedCommandRequiresOneOption Command.Validator

Returns an error if an argument has been passed to a command with out at least one option. Only works if ccRequiresOneOption is not set for the command.

TSelectedCommandRequiresValidCommandOrNothing Command.Validator

Returns an error if an invalid command was passed to a command that only accepts command as an argument. Only works if ccNoArgumentsButCommands is set for the command.

TSelectedCommandValidateIfOptionsExists Command.Validator

Returns an error if a non-existent option was passed to a command.

TSelectedCommandValidateOptionValueNotRequired Command.Validator

Returns an error if an option has been passed with a value and it is configured to not accept a value.

TSelectedCommandValidateOptionValueRequired Command.Validator

Returns an error if an option has been passed without a value and it is configured to require a value.

TSelectedCommandValidateRejectedOption Command.Validator

Returns an error if an option has been passed that cannot be used together with another option for a given command.

TValidatorBase Command.Validator

Base class for any validation that needs to be implemented. Specification validations need to inherit from this class by convention from this library. It already has control for the successor validator as well as its automatic call at the appropriate time.

TValidatorContext Command.Validator

Class that groups all validators, as well as establishes the validation order.

UsageCommand Command.Usage

Outputs text describing command usage according to commands, options and arguments configured using application command builder. If a different color theme is specified to the TCommandBuilder.ColorTheme, this command displays the usage info in different colors.

VersionCommand Command.Version

Outputs application version information that was incorporated after the application was built.

White Command.Colors

 

WriteCommandUsage Command.Usage

Outputs full usage information for a specific command. It´s used when the user requests help for a specific command.

WriteGeneralUsage Command.Usage

Outputs general help information for the application, including command usage syntax, command list, command description, arguments that are acceptable. Also displays application title and version information.

WriteUsage Command.Usage

Outputs simple usage command using provided parameters for the command provided. Display the usage in the following format 'EXECUTABLE [command] [options]'.

Yellow Command.Colors

 


Generated by PasDoc 0.16.0.