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

The man pages of sonde and sonde-bridge (design 0036). More...

#include "manpage.h"
#include "bridge.h"
#include "commands.h"
#include <sonde/version.h>
#include <QtCore/QRegularExpression>
#include <QtCore/QStringList>

Namespaces

namespace  Sonde
 Embeddable Model Context Protocol server for Qt applications.

Functions

QString Sonde::Cli::anonymous_namespace{manpage.cpp}::roff (const QString &text)
 text with roff's special characters escaped: a backslash, a hyphen (so options copy as typed), and a period or quote at the start of a line.
QString Sonde::Cli::anonymous_namespace{manpage.cpp}::filled (const QString &text)
 text as filled roff text: its words in lines of at most 78 characters (roff fills them again), escaped.
QString Sonde::Cli::anonymous_namespace{manpage.cpp}::bold (const QString &text)
 text in bold.
QString Sonde::Cli::anonymous_namespace{manpage.cpp}::prose (const QString &text)
 Prose as roff paragraphs: a paragraph of lines indented by spaces (an example, a table) is kept as it is; the others are filled.
QString Sonde::Cli::anonymous_namespace{manpage.cpp}::header (const QString &program)
 The top of a page.
QString Sonde::Cli::anonymous_namespace{manpage.cpp}::options (const CommandDoc &c)
 A command's options, as an indented list.
QString Sonde::Cli::anonymous_namespace{manpage.cpp}::sondePage ()
 sonde's man page.
QString Sonde::Cli::anonymous_namespace{manpage.cpp}::bridgePage ()
 sonde-bridge's man page.
QString Sonde::Cli::anonymous_namespace{manpage.cpp}::tidy (QString page)
 page without a paragraph macro straight after a section heading, which starts a paragraph anyway.
std::optional< QString > Sonde::Cli::manPage (const QString &program)
 The man page of program ("sonde" or "sonde-bridge"), in roff with the man macros, or nothing for another program.

Detailed Description

The man pages of sonde and sonde-bridge (design 0036).