Sign in Join
FPDoc Onlineexperiment

TCommand class

In unit fpMkUnit

Represents a command to be executed during build

Declaration

pascal
TCommand = class(TNamedItem)

Inheritance

  1. TCommand
  2. TNamedItem
  3. TCollectionItem
  4. TPersistent
  5. TObject

Description

Class that encapsulates a command to be executed at specific points during the build process. Stores command information including the executable, arguments, and execution timing.

Properties

SourceFilepublicSource file for the command
DestFilepublicDestination file for the command
CommandpublicCommand line to execute
OptionspublicCommand line options
AtpublicWhen to execute the command
IgnoreResultpublicWhether to ignore command execution result
BeforeCommandpublicCommand to execute before this command
AfterCommandpublicCommand to execute after this command

Methods

DestroypublicDestructor that cleans up command resources
HaveOptionspublicCheck if command has any options
CmdLineOptionspublicGet formatted command line options
ParseOptionspublicParse options from a string

Inherited

From TNamedItem (1)

Name

From TCollectionItem (12)

Changed Collection Create DisplayName GetDisplayName GetNamePath GetOwner ID Index SetCollection SetDisplayName SetIndex

From TPersistent (6)

Assign AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.