Pudu programming language
Menu
Package

@chrismichaelps / pudu-lang-docgen

Documentation publishing for Pudu: articles, API references, navigation, search, and static websites

0.1.0Apache-2.01

InstallClose

index.md

Markdown46 lines1.9 KB

GitHub ↗

Command-line reference


uid: guides.commands description: The docgen command line - commands, arguments, options, and exit statuses.


The command line is the function <xref:PuduLangDocgen.Command.run>. Run it through a program that passes the process arguments, as described in the [quick start](../quick-start.md#add-the-command-line-program). This repository ships one as examples/Cli.pudu:

pudu run examples/Cli.pudu build website

The general form is:

docgen [command] [path] [options]
CommandDescription
buildBuild the site, API reference included. The default when no command is given.
metadataWrite API metadata files for the configured sources.
servePreview a built site over HTTP.
initCreate a new documentation project.
pdfBuild the site and a PDF for every table of contents that sets pdf.
templateList the built-in templates or export the default one for customizing.
downloadSave a cross-reference map from the web.
mergeCombine cross-reference maps into one.
versionPrint the package version.
helpPrint the usage summary.

Paths

Commands that read a project take the path of its configuration: a folder containing docgen.json, or a .json, .yml, or .yaml file. Without a path, docgen.json in the current folder is used.

Exit statuses

StatusMeaning
0The command succeeded. Warnings may have been printed.
1The work failed: the build found errors, a file could not be written, or a tool failed.
2The command line was invalid: an unknown option, a missing option value, or too many paths.

Diagnostics are printed to standard error as path:line: severity CODE: message, followed by a count of errors and warnings. See the [diagnostics reference](../diagnostics.md).