Overview
The pasc is a cross-platform command line tool that is intended to help with the development process of Free Pascal / Lazarus projects, assisting during development, testing, build and documentation.
It allows you to create projects, add tests, add automation to documentation, in addition to providing a watch command to monitor the projects folder for changes and thereby trigger the build and test report process.
An interesting feature is the ease with which a new project can be configured to work with vscode providing configuration files for build, to run tests, and even for watch project folder and to trigger build and tests.
Commands
Requirements
This tool was tested with FPC 3.2.2 and Lazarus 2.2.2, but it may work with other versions. Should work under Linux, MacOS and Windows.
To work with the project using vscode you will going to need the following requirements:
a vscode extension that provides code completion, syntax check, etc for FreePascal, OmniPascal is a good one.
a vscode extension to debug your project, the launch.json file generated by pasc is using Free Pascal (fpc) Debugger extension, but you can change it to one of your preference
lazbuild should be in the path, pasc uses it to build the projects and the tests projects. You can find lazbuild on Lazarus tools sub folder.
Optional items that can improve the experience:
vscode should be in the path. Some examples might suggest to type "code ." to open the editor directly from the prompt.
git command line should be in the path.
Boss a dependency manager tool.
Pasdoc should be in the path, pasc uses it to build documentation.
Powershell installed even for Linux and MacOS. It is necessary to run script to generate project documentation.
License
pasc is free and open-source software licensed under the MIT License.
Next Install |
---|
Generated by PasDoc 0.16.0.