-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ed88e59
commit ffc487f
Showing
31 changed files
with
275 additions
and
186 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
build | ||
scratch/ | ||
scratch/ | ||
# This file is generated by the runreal CLI during the test | ||
.runreal/dist/script.esm.js |
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
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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
import { Command } from '../../deps.ts' | ||
import { GlobalOptions } from '../../lib/types.ts' | ||
import type { GlobalOptions } from '../../lib/types.ts' | ||
|
||
import { run } from './run.ts' | ||
|
||
export const buildgraph = new Command<GlobalOptions>() | ||
.description('buildgraph') | ||
.action((function () { | ||
this.showHelp() | ||
})) | ||
.command('run', run) |
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
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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
import { Command } from '../../deps.ts' | ||
import { GlobalOptions } from '../../lib/types.ts' | ||
import type { GlobalOptions } from '../../lib/types.ts' | ||
|
||
import { debugConfig } from './debug-config.ts' | ||
|
||
export const debug = new Command<GlobalOptions>() | ||
.description('debug') | ||
.action((function () { | ||
this.showHelp() | ||
})) | ||
.command('config', debugConfig) |
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
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
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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import { Command } from '../../deps.ts' | ||
import { config } from '../../lib/config.ts' | ||
import { CliOptions, GlobalOptions } from '../../lib/types.ts' | ||
import { Config } from '../../lib/config.ts' | ||
import type { GlobalOptions } from '../../lib/types.ts' | ||
import { createEngine } from '../../lib/engine.ts' | ||
import { logger } from '../../lib/logger.ts' | ||
|
||
export type VersionOptions = typeof version extends Command<any, any, infer Options, any, any> ? Options | ||
export type VersionOptions = typeof version extends Command<void, void, infer Options, [], GlobalOptions> ? Options | ||
: never | ||
|
||
export const version = new Command<GlobalOptions>() | ||
.description('print the engine version') | ||
.action( | ||
async (options, ..._args) => { | ||
(options, ..._args) => { | ||
logger.setContext(version.getName()) | ||
const cfg = config.get(options as CliOptions) | ||
console.log(cfg) | ||
const engine = await createEngine(cfg.engine.path) | ||
const engineVersion = await engine.getEngineVersion('full') | ||
const config = Config.getInstance() | ||
const cfg = config.mergeConfigCLIConfig({ cliOptions: options }) | ||
const engine = createEngine(cfg.engine.path) | ||
const engineVersion = engine.getEngineVersion('full') | ||
logger.info(engineVersion) | ||
}, | ||
) |
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
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
Oops, something went wrong.