Skip to content

TCommands

Collection of commands to execute during build

Declaration

Source position: fpmkunit.pp line 419

type

  TCommands = class(TNamedCollection)
  public
    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) : TCommand;
    function GetEnumerator : TCommandEnumerator;
    property CommandItems[Index : Integer]: TCommand; {rw}
    property Commands[Dest : string]: TCommand; {r}
    property DefaultAt: TCommandAt; {rw}
  end;

Description

TCommands is a specialized collection class that manages a list of TCommand objects.

This class provides methods to add, remove, and iterate through build commands that should be executed during the package compilation process.

Commands are typically shell commands, compiler invocations, or other external tools needed for building packages.

Properties

Member Visibility Description
CommandItems public Indexed access to command items
Commands read only public Access to commands by destination
DefaultAt public Default execution timing for commands
See all Properties

Methods

Member Visibility Description
AddCommand public Add a new command to the collection
GetEnumerator public Get enumerator for iterating commands
See all Methods