Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
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
13namespace Sonde::Cli {
14
18QString tail(const QString &path, int lines);
19
22QStringList runCommand(const QJsonObject &config, const QString &root);
23
27void start(const QJsonObject &config, const Project &project, bool build);
28
30void stop(const Project &project, bool quiet = false);
31
33void status(const QJsonObject &config, const Project &project);
34
36void showLog(const Project &project, int lines);
37
38} // namespace Sonde::Cli
A project's files under .sonde/, and its configuration (design 0028).
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
void stop(const Project &project, bool quiet)
sonde stop: stops the copy sonde started, saying so unless quiet.
Definition run.cpp:419
void showLog(const Project &project, int lines)
sonde log: the last lines lines of the application's output.
Definition run.cpp:455
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
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
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
Where a project keeps its files: .sonde/ at its root.
Definition project.h:16