core!: refactor launch sequence

Also includes slight changes to the command syntax.
See --help for details.
This commit is contained in:
outfoxxed 2024-09-01 14:17:39 -07:00
parent da043e092a
commit 94e881e6b0
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
12 changed files with 729 additions and 651 deletions

View file

@ -1,13 +1,13 @@
#pragma once
#include <qdatetime.h>
#include <qlogging.h>
#include <qstring.h>
struct InstanceInfo {
QString instanceId;
QString configPath;
QString shellId;
QString initialWorkdir;
QDateTime launchTime;
static InstanceInfo CURRENT; // NOLINT
@ -16,7 +16,10 @@ struct InstanceInfo {
struct RelaunchInfo {
InstanceInfo instance;
bool noColor = false;
bool timestamp = false;
bool sparseLogsOnly = false;
QtMsgType defaultLogLevel = QtWarningMsg;
QString logRules;
};
QDataStream& operator<<(QDataStream& stream, const InstanceInfo& info);