Inputs and Outputs¶
This section provides the user a description of the inputs and outputs to and from the Dragnet Gem.
Inputs¶
CLI Arguments that are passed to the Dragnet gem via CLI during initializzation:
Dragnet configuration and execution folder
Multi-repo enable option
Dragnet configuration files
1. configuration file
.dragnet.yaml
is expected to be in the execution folder but an alternative path can be given via the CLI. It contains the configuration for dragnet, for example the glob patterns used to locate MTR files, among other things.
Outputs¶
CLI Logs of the executed commands
JSON/HTMl report export of the check results on user request
Exit Code
Possible Exit Codes¶
Exit Code |
Meaning |
---|---|
0 |
Success: MTR files were loaded successfully and their verification passed. |
Unrecoverable (the execution will be aborted, export can be incomplete) |
|
2 |
The given path (CLI argument) or the glob patterns in the configuration file are invalid or malformed |
3 |
Dragnet couldn’t find any MTR files using the given glob patterns |
4 |
Dragnet was unable to open the specified path (or the current working directory, if no path was given) as a Git repository. |
5 |
Dragnet was unable to write to one or more of the files specified to export the data after the analysis (for example the HTML report). |
6 |
Signals that a git operation was attempted on a repository with an
incompatible type. This happens, for example, if the |
Recoverable (the execution will finish, data will be exported) |
|
16 |
Signals that Dragnet was unable to load one or more of the MTR files because of a format error, for example: a YAML syntax error, missing attributes, incompatible types, etc. |
32 |
Signals that one or more of the MTRs failed ( |
48 |
(Bitwise OR of 16 and 32) Signals that both the above conditions happened. |