Skip to content

Interactive Shell

Shane Brinkman-Davis Delamore edited this page Oct 6, 2017 · 5 revisions

CaffeineMC's REPL

run

> caf

features

  • promise-smart output

    • when the promise resolves/rejects, the result is logged to the console
    • globals: $lastResolved, $lastRejected and $lastPromise are set appropriately
  • globals:

    • $last is set after every command storing the last result
    • $lastPromise contains the value of the last result that was a promise (set after it resolves/rejects)
    • $lastResolved contains the value of the last promise-result that was resolved
    • $lastRejected contains the value of the last promise-result that was rejected
  • color-smart output

  • switch compilers on the fly

  • tab-completion

  • persistent history

Clone this wiki locally