TCommands.AddCommand function
Add a new command to the collection
Declaration
function AddCommand(const Cmd: string): TCommand
function AddCommand(const Cmd: string; const Options: string): TCommand
function AddCommand(const Cmd: string; const Options: string;
const Dest: string; const Source: string): TCommand
function AddCommand(At: TCommandAt; const Cmd: string): TCommand
function AddCommand(At: TCommandAt; const Cmd: string;
const Options: string): TCommand
function AddCommand(At: TCommandAt; const Cmd: string;
const Options: string; const Dest: string;
const Source: string): TCommandArguments
Cmd | Command line executable to run |
Options | Command line options string |
Dest | Destination file path for command operation |
Source | Source file path for command operation |
At | When to execute the command during build process |
Function result
Newly created command object
Description
Creates and adds a new TCommand object to the commands collection.
The command can be configured with executable path, options, source and destination files,
and execution timing.
Commands are executed during the build process at the specified timing (before or after compilation, installation, etc.).
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
