This folder holds some command-line or visual tools, to be used with the mORMot Open Source framework, version 2.
Each Tool will have its own dedicated sub-folder.
The ecc command-line tool manages certificate-based public-key cryptography using ECC-secp256r1
- Public/private key pairs generation using
new/rekey/source/infopriv; - Safe key chaining using
chain/chainall; - ECDSA digital signature using
sign/verify; - ECIES encryption using
crypt/decrypt/infocrypt; - Symmetric encryption via
aeadcrypt/aeaddecrypt; - Centralized passwords management via
cheatinit/cheat.
The Angelize (agl) tool is able to run one or several executables as daemon/services
- Implemented as a main standard OS service (Windows) or daemon (Linux);
- Launches and stops sub-processes defined in JSON setting files;
- A WatchDog can check the availibility of a sub-service on regular basis;
- Can redirect the console output, restart on problem, notify issues;
- Command line switches are available for status listing or main actions.
The LogView (logview) visual tool displays the .log files generated by TSynLog
- Open
.log, compressed.synlzor plain text files, with per-level colors and filters; - Search within the events, follow a given thread, or navigate per day;
- Methods profiler, from the
Enter/Leaveevents timing; - Remote logging server: receive the live events of
TRestHttpClient.CreateForRemoteLogging()from several clients at once, then save them; - Resolve an exception address from a
.mabfile, as generated by themabtool; - A FPC/Lazarus LCL application: open
logview.lpiwith themormot2package installed.
The mab command-line Tool can generate .mab files from existing .map or .dbg files
- With Delphi, enable
.mapfile by setting "Detailed" debug information in Project Options; - With FPC, will use DWARF debugging information instead of the
.mapfile; a good idea is to generate-Xgexternal.dbginfo to keep the executable small; - If some
.map/.dbgfile name is specified (you can use wild chars), it will process all those files, then create the corresponding.mabfiles; - If some
.exe/.dllfile name is specified (you can use wild chars), will process all matching.exe/.dllfiles with associated debug info, and will create the.mabfiles, then embedd the.mabcontent to the.exe/.dll;
Usage: mab <source> [options]
<source> exe or .dbg source filename or mask
Options:
-s, --nosymbol include only line info for production (smaller and safer)
-m, --nomab only embed to exe, no external .mab file
The mORMot GET (mget) command-line tool can retrieve files using HTTP or HTTPS, similar to the well-known homonymous GNU WGet tool, but with some unique features provided by mORMot 2:
- Can resume aborted downloads, using
RANGEheaders; - Can compute and verify the hash of the downloaded content;
- Can brodcast and download from a local network peer cache. Those last two features are quite unique and efficient.
The mORMot OpenAPI (mopenapi) command-Line tool can generate Delphi/FPC client .pas units from OpenAPI/Swagger .json specifications.
Example of usage:
./mopenapi --help
mopenapi swagger.json PetStore
mopenapi OpenApiAuth.json /concise
./mopenapi test.json --options=DtoNoExample,DtoNoPattern