method ReplCommand.main
ReplCommand.main(
argument: string
): void | Promise<void>

What typing it does. repl first because nearly every command needs it and many ignore the argument entirely — which they can then simply not declare.

argument is everything after the name, untrimmed.

May be async. define draws the prompt when it finishes and catches what it throws, so a command's job ends when it has said its piece.

Parameters

argument: string

Return Type

void | Promise<void>

Usage

import { type ReplCommand } from "lib/commands/repl/command.ts";