Skip to content

Commit

Permalink
feat: add getMethods and useCompiler methods
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jul 6, 2023
1 parent 3045d0d commit 8161de5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/repl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,22 @@ export class Repl {
return this
}

/**
* Returns the collection of registered methods
*/
getMethods() {
return this.#customMethods
}

/**
* Register a compiler. Make sure register the compiler before
* calling the start method
*/
useCompiler(compiler: Compiler): this {
this.#compiler = compiler
return this
}

/**
* Start the REPL server
*/
Expand Down

0 comments on commit 8161de5

Please # to comment.