Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
commands.cpp File Reference

The catalogue of sonde's commands (design 0036), and --help made from it. More...

#include "commands.h"

Namespaces

namespace  Sonde
 Embeddable Model Context Protocol server for Qt applications.

Functions

ArgumentSpec Sonde::Cli::anonymous_namespace{commands.cpp}::bare (const QString &command)
 A spec with nothing but its name: a command with no options.
void Sonde::Cli::anonymous_namespace{commands.cpp}::addRunCommands (QList< CommandDoc > &list)
 The commands that run the application, appended to list.
void Sonde::Cli::anonymous_namespace{commands.cpp}::addToolCommands (QList< CommandDoc > &list)
 The commands that connect a client and call tools, appended to list.
void Sonde::Cli::anonymous_namespace{commands.cpp}::addOtherCommands (QList< CommandDoc > &list)
 The other commands, appended to list.
QList< CommandDoc > Sonde::Cli::anonymous_namespace{commands.cpp}::buildCommands ()
 The catalogue's commands.
QString Sonde::Cli::anonymous_namespace{commands.cpp}::wrap (const QString &text, qsizetype width, qsizetype indent)
 text wrapped to width columns, each line after the first indented by indent spaces.
const QList< CommandDoc > & Sonde::Cli::commands ()
 The commands, in the order –help lists them.
const CommandDoc * Sonde::Cli::command (const QString &name)
 The command called name, or nullptr.
const QList< GlobalOptionDoc > & Sonde::Cli::globalOptions ()
 The options before the command.
const QList< TopicDoc > & Sonde::Cli::topics ()
 The prose sections, in order.
const QList< std::pair< QString, QString > > & Sonde::Cli::environment ()
 The environment variables sonde reads or sets: name and what it is for.
const QList< std::pair< QString, QString > > & Sonde::Cli::examples ()
 A few examples for the man page: the command line, and what it does.
QString Sonde::Cli::usageText ()
 What sonde --help prints.

Variables

constexpr qsizetype Sonde::Cli::anonymous_namespace{commands.cpp}::kSummaryColumn = 38
 Where –help puts the summaries of the commands.
constexpr qsizetype Sonde::Cli::anonymous_namespace{commands.cpp}::kWidth = 94
 The width –help wraps the summaries to.

Detailed Description

The catalogue of sonde's commands (design 0036), and --help made from it.