Skip to content

Commit

Permalink
remove repl support
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyuheng committed Apr 21, 2024
1 parent e182a0b commit 969964b
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 94 deletions.
1 change: 1 addition & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ update to esmodule
remove hypergraph support

- move test about hypergraph to docs/archive
- remove "sjcl"

fix repl for windows

Expand Down
2 changes: 0 additions & 2 deletions src/app/App.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import * as Loggers from "@cicada-lang/framework/lib/loggers"
import { AppConfig } from "./AppConfig"
import { AppHome } from "./AppHome"
import { AppReplEventHandler } from "./AppReplEventHandler"

export class App {
logger = new Loggers.PrettyLogger()
config = new AppConfig()
home = new AppHome()
replEventHandler = new AppReplEventHandler()
}
48 changes: 0 additions & 48 deletions src/app/AppReplEventHandler.ts

This file was deleted.

6 changes: 3 additions & 3 deletions src/command-line/commands/DefaultCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export class DefaultCommand extends Command<Args, Opts> {
const file = argv["file"]

if (file === undefined) {
const dir = process.cwd()
const command = new Commands.ReplCommand()
await command.execute({ dir })
const command = new Commands.CommonHelp()
await command.execute({}, runner)
return
} else {
const command = new Commands.RunCommand()
await command.execute({ file })
Expand Down
39 changes: 0 additions & 39 deletions src/command-line/commands/ReplCommand.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/command-line/commands/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from "@xieyuheng/command-line/lib/commands"
export * from "./DefaultCommand"
export * from "./ReplCommand"
export * from "./RunCommand"
1 change: 0 additions & 1 deletion src/command-line/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export function createCommandRunner(): CommandRunner {
return new CommandRunners.CommonCommandRunner({
defaultCommand: new Commands.DefaultCommand(),
commands: [
new Commands.ReplCommand(),
new Commands.RunCommand(),
new Commands.CommonHelp(),
],
Expand Down

0 comments on commit 969964b

Please sign in to comment.