-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix] Use runRunnerCommand to fix issue with spaces enabling egl-sync…
… (#2964) * Use runRunnerCommand to fix issue with spaces enabling egl-sync * Address feedback: order options, constant, safeparse
- Loading branch information
1 parent
e9d3e27
commit 6b788e2
Showing
4 changed files
with
177 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Path } from './base' | ||
|
||
interface EglSyncCommand { | ||
subcommand: 'egl-sync' | ||
'--egl-manifest-path'?: Path | ||
'--egl-wine-prefix'?: Path | ||
'--enable-sync'?: true | ||
'--disable-sync'?: true | ||
'--one-shot'?: true | ||
'--import-only'?: true | ||
'--export-only'?: true | ||
'--migrate'?: true | ||
'--unlink'?: true | ||
} | ||
|
||
export default EglSyncCommand |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { PositiveInteger } from './base' | ||
|
||
import InstallCommand from './install' | ||
import LaunchCommand from './launch' | ||
import ListCommand from './list' | ||
import InfoCommand from './info' | ||
import MoveCommand from './move' | ||
import SyncSavesCommand from './sync_saves' | ||
import StatusCommand from './status' | ||
import EosOverlayCommand from './eos_overlay' | ||
import UninstallCommand from './uninstall' | ||
import ImportCommand from './import' | ||
import CleanupCommand from './cleanup' | ||
import AuthCommand from './auth' | ||
import EglSyncCommand from './egl_sync' | ||
|
||
interface BaseLegendaryCommand { | ||
'-v'?: true | ||
'--debug'?: true | ||
'-y'?: true | ||
'--yes'?: true | ||
'-V'?: true | ||
'--version'?: true | ||
'-J'?: true | ||
'--pretty-json'?: true | ||
'-A'?: PositiveInteger | ||
'--api-timeout'?: PositiveInteger | ||
} | ||
|
||
export type LegendaryCommand = BaseLegendaryCommand & | ||
( | ||
| { subcommand: undefined } | ||
| InstallCommand | ||
| LaunchCommand | ||
| ListCommand | ||
| InfoCommand | ||
| MoveCommand | ||
| SyncSavesCommand | ||
| StatusCommand | ||
| EosOverlayCommand | ||
| UninstallCommand | ||
| ImportCommand | ||
| CleanupCommand | ||
| AuthCommand | ||
| EglSyncCommand | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters