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

sonde migrate: moving a project's files from the names before 0.5 (design 0028). More...

#include "migrate.h"
#include "common.h"
#include "instance_p.h"
#include "project.h"
#include "trust_p.h"
#include <QtCore/QDir>
#include <QtCore/QDirIterator>
#include <QtCore/QFile>
#include <QtCore/QFileInfo>
#include <QtCore/QHash>
#include <QtCore/QProcess>
#include <QtCore/QStandardPaths>
#include <array>
#include <utility>

Namespaces

namespace  Sonde
 Embeddable Model Context Protocol server for Qt applications.

Functions

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.
bool Sonde::Cli::anonymous_namespace{migrate.cpp}::tracked (const QString &root, const QString &path)
 Whether git tracks path in the repository at root.
void Sonde::Cli::anonymous_namespace{migrate.cpp}::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 > Sonde::Cli::anonymous_namespace{migrate.cpp}::filesOf (const QString &library)
 Every file in library, by its canonical path, with its path relative to it.
void Sonde::Cli::anonymous_namespace{migrate.cpp}::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).
void Sonde::Cli::migrate (const QString &explicitConfig)
 sonde migrate: moves the files of the project of explicitConfig (--config), or else the first one here or above, to .sonde/.

Variables

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

Detailed Description

sonde migrate: moving a project's files from the names before 0.5 (design 0028).