Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
Sonde::Cli::anonymous_namespace{migrate.cpp} Namespace Reference

Functions

QString findRoot (const QString &explicitConfig)
 The project's root: the directory of explicitConfig, or else the first one here or above with a file from before 0.5 or a .sonde.
bool tracked (const QString &root, const QString &path)
 Whether git tracks path in the repository at root.
void move (const QString &root, const QString &from, const QString &to)
 Moves from to to under root, with git mv if git tracks it, and says how.
QHash< QString, QString > filesOf (const QString &library)
 Every file in library, by its canonical path, with its path relative to it.
void moveGrants (const QHash< QString, QString > &before, const QString &library)
 Points the trust grants of the files of the old library, before, at the files in library, which they moved to (design 0023).

Variables

constexpr QLatin1StringView kOldConfig { ".qtmcp-run.json" }
 The configuration file before 0.5.
constexpr QLatin1StringView kOldLocalConfig { ".qtmcp-run.local.json" }
 This machine's configuration file before 0.5.
constexpr QLatin1StringView kOldState { ".qtmcp-run" }
 The state directory before 0.5.

Function Documentation

◆ findRoot()

QString Sonde::Cli::anonymous_namespace{migrate.cpp}::findRoot ( const QString & explicitConfig)

The project's root: the directory of explicitConfig, or else the first one here or above with a file from before 0.5 or a .sonde.

Fails if there is none.