function opening
opening(name: string): ReplCommand["main"]

.open, .edit and .e — whichever editor the environment prefers.

import { opening } from './editor.ts';

typeof opening('open'); // 'function' — a command's `main`, waiting for a context

Parameters

name: string

Return Type

ReplCommand["main"]

Usage

import { opening } from "lib/commands/repl/editor.ts";