mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-27 18:22:41 -08:00
chore: add project management metadata and remaining repository files
This commit is contained in:
20
launcher/commands/app-command.ts
Normal file
20
launcher/commands/app-command.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { launchTexthookerOnly, runAppCommandWithInherit } from '../mpv.js';
|
||||
import type { LauncherCommandContext } from './context.js';
|
||||
|
||||
export function runAppPassthroughCommand(context: LauncherCommandContext): boolean {
|
||||
const { args, appPath } = context;
|
||||
if (!args.appPassthrough || !appPath) {
|
||||
return false;
|
||||
}
|
||||
runAppCommandWithInherit(appPath, args.appArgs);
|
||||
return true;
|
||||
}
|
||||
|
||||
export function runTexthookerCommand(context: LauncherCommandContext): boolean {
|
||||
const { args, appPath } = context;
|
||||
if (!args.texthookerOnly || !appPath) {
|
||||
return false;
|
||||
}
|
||||
launchTexthookerOnly(appPath, args);
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user