Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
completion.h
Go to the documentation of this file.
1#pragma once
2
6
7#include "client.h"
8
9#include <QtCore/QString>
10#include <QtCore/QStringList>
11
12#include <optional>
13
14namespace Sonde::Cli {
15
17std::optional<QString> completionScript(const QString &shell);
18
20void completionCommand(const QStringList &args);
21
25void completeCommand(const Options &options, const QStringList &args);
26
27} // namespace Sonde::Cli
Calling tools from the command line over HTTP: sonde tools, describe, call (and sonde TOOL) and sessi...
void completeCommand(const Options &options, const QStringList &args)
sonde __complete tools|templates [--user]|containers: prints the candidates one per line.
Definition completion.cpp:368
std::optional< QString > completionScript(const QString &shell)
The completion script for shell ("bash" or "zsh"), or nothing for another shell.
Definition completion.cpp:344
void completionCommand(const QStringList &args)
sonde completion bash|zsh: prints the script.
Definition completion.cpp:353
The options given before the command.
Definition client.h:19