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

Shell completion for sonde and sonde-bridge (design 0036): the scripts, written from the command catalogue, and what they ask sonde for. More...

#include "client.h"
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <optional>

Go to the source code of this file.

Namespaces

namespace  Sonde
 Embeddable Model Context Protocol server for Qt applications.

Functions

std::optional< QString > Sonde::Cli::completionScript (const QString &shell)
 The completion script for shell ("bash" or "zsh"), or nothing for another shell.
void Sonde::Cli::completionCommand (const QStringList &args)
 sonde completion bash|zsh: prints the script.
void Sonde::Cli::completeCommand (const Options &options, const QStringList &args)
 sonde __complete tools|templates [--user]|containers: prints the candidates one per line.

Detailed Description

Shell completion for sonde and sonde-bridge (design 0036): the scripts, written from the command catalogue, and what they ask sonde for.

Function Documentation

◆ completeCommand()

void Sonde::Cli::completeCommand ( const Options & options,
const QStringList & args )

sonde __complete tools|templates [--user]|containers: prints the candidates one per line.

Waits at most a second, and prints nothing, without an error, if they can't be found.