Unit Command.Version

Uses
Classes, Interfaces, Objects and Records
Types
Constants
Variables

Description

This unit contains functions to expose a command that displays version information about the application.

Overview

Functions and Procedures

procedure VersionCommand(ABuilder: ICommandBuilder);
function Registry(ABuilder: ICommandBuilder): Boolean;

Description

Functions and Procedures

procedure VersionCommand(ABuilder: ICommandBuilder);

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

Note
Requires version information to be defined in the Lazarus project .lpi file. Also the main program must include the {$R *.res} directive.
If a different color theme is specified for the TCommandBuilder.ColorTheme, the output will be properly done.

To use this command add the Command.Version unit to the uses clause and run the following command:

Command.Version.Registry(MyApp.CommandBuilder);

or you can use the overloaded version of AddCommand to add the command to the builder using fluent interface:

MyBuilder
  .AddCommand(Command.Version.Registry);

Parameters
ABuilder
CommandBuilder that will be used to output the version information.
function Registry(ABuilder: ICommandBuilder): Boolean;

Configure VersionCommand with standard parameters.

Ex:

Command.Version.Registry(MyApp.CommandBuilder);

Ex with fluent interface:

Builder.AddCommand(Command.Version.Registry);

Parameters
ABuilder
CommandBuilder instance that will be used to register the VersionCommand.

Generated by PasDoc 0.16.0.