A repository to host builds of my Documentation Generator tool, for everyone to use.
Documentation and usage instructions can be found in this repository's Wiki.
The CLI is the main way of interfacing with the DocGen, until the UI is in a working state.
It can work completely off of command line arguments and thus is perfectly suited to be invoked by shell scripts automating CI.
If no arguments are given, execution will be interactive and prompts will appear for filling in relevant parameters.
The documentation
command tells the executable to generate documentation files, based on the given parameters.
documentation
[-s|-settings <settings file path>]
[-o|-output <output directory>]
[-version <version>]
[-p|-pause <true|false>]
[-l <link repository file path>]
-s|-settings
(required)
The path given for this option must be a local file path pointing to a text file in JSON format. The file must contain a valid configuration for the documentation generator.-o|-output
If given a value, this will override theOutput:BaseDirectory
specified in the Generation Settings.-version
If given a value, this will overwrite theInput.Version
specified in the generation settings.-p|-pause
If set totrue
, the console will wait for user input after the process has finished or failed. This defaults tofalse
and is mainly meant for debugging purposes.-l
If given a value, this will override theInput:LinkRepository
specified in the Generation Settings.
(Releasepre-0.0.2+
)
The links
command allows creating a link repository file that can be used in future generation processes to eliminate the need for link prompts.
links
[-s|-settings <settings file path>]
[-o|-output <output file path>]
[-v|-validate <true|false>]
[-p|-pause <true|false>]
-s|-settings
(required)
The path given for this option must be a local file path pointing to a text file in JSON format. The file must contain a valid configuration for the documentation generator.-o|-output
(required)
The path of the output link repository file. This must be a valid file path. The file extension will automatically be changed to.zdlr
.-v|-validate
If set totrue
, given links will be validated via web request, and a verification prompt will be given if the request returned an error.
This defaults tofalse
.-p|-pause
If set totrue
, the console will wait for user input after the process has finished or failed. This defaults tofalse
and is mainly meant for debugging purposes.
Below is a table of exit codes that the CLI may return after finishing or failing, and their respective meanings.
Code | Reason |
---|---|
0 | The process finished without errors. |
-1 | The process failed due to an internal error of the generator. |
-2 | The process name given was invalid. |
-3 | The number of arguments given was invalid. |
-4 | The Settings file provided via the -s|-settings option did not exist or could not be parsed. |
-5 | The output path was invalid so that the generation result could not be written. |