Unit Command.Check

Description

This unit contains procedures to configure and execute a command to check the projects and packages for folders and units that lazbuild would not find.

Overview

Functions and Procedures

procedure CheckCommand(ABuilder: ICommandBuilder);
function CheckWorkspace(ABuilder: ICommandBuilder; const AWorkspaceDir: string): Integer;
procedure PrepareWorkspace(ABuilder: ICommandBuilder; const AWorkspaceDir: string);
procedure Registry(ABuilder: ICommandBuilder);

Description

Functions and Procedures

procedure CheckCommand(ABuilder: ICommandBuilder);

This command checks every member of the workspace, or the project in the current folder, and its test project: folders with units that are not in the search paths of every build mode, search paths that do not exist, and for a package the units that are not in its files and the files that no longer exist. In a workspace it also checks the modules folder: out of place, missing, or without the modules of boss-lock.json. Each problem is a warning with the line to add or remove, and the exit code is 1 when there is any.

Parameters
ABuilder
Command builder of the main application that will be used to output the warnings.
function CheckWorkspace(ABuilder: ICommandBuilder; const AWorkspaceDir: string): Integer;

Checks the modules folder of the workspace, then every member and its test project, and outputs one warning per problem. Returns the number of warnings.

Parameters
ABuilder
Command builder of the main application that will be used to output the warnings.
AWorkspaceDir
Workspace root folder.
procedure PrepareWorkspace(ABuilder: ICommandBuilder; const AWorkspaceDir: string);

Prepares the members of the workspace to be built: adds the src folders of each app to its search paths, then outputs the warnings of CheckWorkspace. Used by pasc build and pasc test before calling lazbuild, so a problem shows up before the first member is built.

Parameters
ABuilder
Command builder of the main application that will be used to output the updated files and the warnings.
AWorkspaceDir
Workspace root folder.
procedure Registry(ABuilder: ICommandBuilder);

Registry a check command using the command builder from pascli.

Parameters
ABuilder
Command builder of the main application that will be used to registry the command.

Generated by PasDoc 1.0.4.