|
ChainCLI
A modern C++20 command-line interface library
|
Default formatter for CLI application documentation. More...
#include <docformatter.h>
Public Member Functions | |
| std::string | generateAppDocString (const cli::CliConfig &configuration, const std::vector< const cli::commands::Command * > &commands) override |
| Generate the application documentation string that shows all the available commands. | |
| std::string | generateCommandDocString (const Command &command, const cli::CliConfig &configuration) override |
| Generate the documentation string for a specific command. | |
| std::string | generateAppVersionString (const cli::CliConfig &configuration) override |
| Generate the application version string that is shown with the –version flag. | |
Default formatter for CLI application documentation.
|
overridevirtual |
Generate the application documentation string that shows all the available commands.
| writer | The documentation writer. |
| configuration | The CLI configuration. |
| commands | The list of commands to document. |
Implements cli::commands::docwriting::AbstractCliAppDocFormatter.
|
overridevirtual |
Generate the application version string that is shown with the –version flag.
| configuration | The CLI configuration. |
Implements cli::commands::docwriting::AbstractCliAppDocFormatter.
|
overridevirtual |
Generate the documentation string for a specific command.
| command | The command to document. |
| fullCommandPath | The full path of the command. |
| writer | The documentation writer. |
| configuration | The CLI configuration. |
Implements cli::commands::docwriting::AbstractCliAppDocFormatter.