|
ChainCLI
A modern C++20 command-line interface library
|
Abstract base class for CLI application documentation formatters. More...
#include <docformatter.h>
Public Member Functions | |
| virtual std::string | generateAppDocString (const cli::CliConfig &configuration, const std::vector< const cli::commands::Command * > &commands)=0 |
| Generate the application documentation string that shows all the available commands. | |
| virtual std::string | generateAppVersionString (const cli::CliConfig &configuration)=0 |
| Generate the application version string that is shown with the –version flag. | |
| virtual std::string | generateCommandDocString (const Command &command, const cli::CliConfig &configuration)=0 |
| Generate the documentation string for a specific command. | |
Abstract base class for CLI application documentation formatters.
|
pure virtual |
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. |
Implemented in cli::commands::docwriting::DefaultCliAppDocFormatter.
|
pure virtual |
Generate the application version string that is shown with the –version flag.
| configuration | The CLI configuration. |
Implemented in cli::commands::docwriting::DefaultCliAppDocFormatter.
|
pure virtual |
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. |
Implemented in cli::commands::docwriting::DefaultCliAppDocFormatter.