Unit 'fpmkunit' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TCommands.AddCommand

Add a new command to the collection

Declaration

Source position: fpmkunit.pp line 424

public function TCommands.AddCommand(

  const Cmd: string

):TCommand;

function TCommands.AddCommand(

  const Cmd: string;

  const Options: string

):TCommand;

function TCommands.AddCommand(

  const Cmd: string;

  const Options: string;

  const Dest: string;

  const Source: string

):TCommand;

function TCommands.AddCommand(

  At: TCommandAt;

  const Cmd: string

):TCommand;

function TCommands.AddCommand(

  At: TCommandAt;

  const Cmd: string;

  const Options: string

):TCommand;

function TCommands.AddCommand(

  At: TCommandAt;

  const Cmd: string;

  const Options: string;

  const Dest: string;

  const Source: string

):TCommand;

Arguments

Cmd

  

Command line executable to run

Function result

Newly created command object

Arguments

Cmd

  

Command line executable to run

Options

  

Command line options string

Arguments

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

Arguments

At

  

When to execute the command during build process

Cmd

  

Command line executable to run

Arguments

At

  

When to execute the command during build process

Cmd

  

Command line executable to run

Options

  

Command line options string

Arguments

At

  

When to execute the command during build process

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

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.).


Documentation generated on: Dec 15 2025