Runtime command helpers shared by the CLI entrypoint.
More...
#include "config.h"
#include <QLoggingCategory>
Go to the source code of this file.
|
| void | configureLogging (const QString &level) |
| | Configures runtime log filtering for Mutterkey commands.
|
| |
| int | runDaemon (QGuiApplication &app, const AppConfig &config, const QString &configPath) |
| | Runs the background daemon mode.
|
| |
| int | runOnce (QGuiApplication &app, const AppConfig &config, double seconds) |
| | Runs one-shot recording and transcription mode.
|
| |
| int | runDiagnose (QGuiApplication &app, const AppConfig &config, double seconds, bool invokeShortcut) |
| | Runs temporary daemon diagnostics.
|
| |
| int | runModelImport (const QString &sourcePath, const QString &outputPath, const QString &packageIdOverride) |
| | Imports a legacy raw Whisper model into a native Mutterkey package.
|
| |
| int | runModelInspect (const QString &path) |
| | Inspects a model artifact and prints metadata as JSON.
|
| |
Runtime command helpers shared by the CLI entrypoint.
Definition in file applicationcommands.h.
◆ configureLogging()
| void configureLogging |
( |
const QString & |
level | ) |
|
Configures runtime log filtering for Mutterkey commands.
- Parameters
-
| level | Configured log level string. |
◆ runDaemon()
| int runDaemon |
( |
QGuiApplication & |
app, |
|
|
const AppConfig & |
config, |
|
|
const QString & |
configPath |
|
) |
| |
Runs the background daemon mode.
- Parameters
-
| app | GUI application object. |
| config | Resolved runtime config snapshot. |
| configPath | Config path associated with the current daemon session. |
- Returns
- Process exit code.
◆ runDiagnose()
| int runDiagnose |
( |
QGuiApplication & |
app, |
|
|
const AppConfig & |
config, |
|
|
double |
seconds, |
|
|
bool |
invokeShortcut |
|
) |
| |
Runs temporary daemon diagnostics.
- Parameters
-
| app | GUI application object. |
| config | Resolved runtime config snapshot. |
| seconds | Diagnostic capture duration in seconds. |
| invokeShortcut | Whether to trigger a synthetic shortcut invoke. |
- Returns
- Process exit code.
◆ runModelImport()
| int runModelImport |
( |
const QString & |
sourcePath, |
|
|
const QString & |
outputPath, |
|
|
const QString & |
packageIdOverride |
|
) |
| |
Imports a legacy raw Whisper model into a native Mutterkey package.
- Parameters
-
| sourcePath | Source raw model file. |
| outputPath | Optional package destination path. |
| packageIdOverride | Optional package id override. |
- Returns
- Process exit code.
◆ runModelInspect()
| int runModelInspect |
( |
const QString & |
path | ) |
|
Inspects a model artifact and prints metadata as JSON.
- Parameters
-
| path | Package directory, manifest path, or raw compatibility artifact. |
- Returns
- Process exit code.
◆ runOnce()
| int runOnce |
( |
QGuiApplication & |
app, |
|
|
const AppConfig & |
config, |
|
|
double |
seconds |
|
) |
| |
Runs one-shot recording and transcription mode.
- Parameters
-
| app | GUI application object. |
| config | Resolved runtime config snapshot. |
| seconds | Recording duration in seconds. |
- Returns
- Process exit code.