Sonde
v1.1.0
Embeddable Model Context Protocol server for Qt applications
Toggle main menu visibility
Loading...
Searching...
No Matches
run.h
Go to the documentation of this file.
1
#pragma once
2
6
7
#include "
project.h
"
8
9
#include <QtCore/QJsonObject>
10
#include <QtCore/QString>
11
#include <QtCore/QStringList>
12
13
namespace
Sonde::Cli {
14
18
QString
tail
(
const
QString &path,
int
lines);
19
22
QStringList
runCommand
(
const
QJsonObject &config,
const
QString &root);
23
27
void
start
(
const
QJsonObject &config,
const
Project
&project,
bool
build);
28
30
void
stop
(
const
Project
&project,
bool
quiet =
false
);
31
33
void
status
(
const
QJsonObject &config,
const
Project
&project);
34
36
void
showLog
(
const
Project
&project,
int
lines);
37
38
}
// namespace Sonde::Cli
project.h
A project's files under .sonde/, and its configuration (design 0028).
Sonde::Cli::start
void start(const QJsonObject &config, const Project &project, bool build)
sonde start: builds (if build), stops any copy started earlier, starts the application and waits unti...
Definition
run.cpp:354
Sonde::Cli::stop
void stop(const Project &project, bool quiet)
sonde stop: stops the copy sonde started, saying so unless quiet.
Definition
run.cpp:419
Sonde::Cli::showLog
void showLog(const Project &project, int lines)
sonde log: the last lines lines of the application's output.
Definition
run.cpp:455
Sonde::Cli::tail
QString tail(const QString &path, int lines)
The last lines lines of the file at path, as the Python sonde's tail() gave them: Python's readlines(...
Definition
run.cpp:312
Sonde::Cli::status
void status(const QJsonObject &config, const Project &project)
sonde status: whether the copy sonde started is running, its pid and endpoints.
Definition
run.cpp:441
Sonde::Cli::runCommand
QStringList runCommand(const QJsonObject &config, const QString &root)
The command that starts the application: "run", with a bundle replaced by its binary and,...
Definition
run.cpp:339
Sonde::Cli::Project
Where a project keeps its files: .sonde/ at its root.
Definition
project.h:16
tools
cli
run.h
Generated by
1.18.0