import { Input } from "https://deno.land/x/cliffy@v1.0.0-rc.4/prompt/input.ts";
Input prompt representation.
import { Input } from "./mod.ts";
const confirmed: string = await Input.prompt("Enter your name");
Constructors
new
Input(options: string | InputOptions)Methods
protected
success(value: string): string | undefinedgetDefaultSettings(options: InputOptions): InputSettings
Static Methods
inject(value: string): void
Inject prompt value. If called, the prompt doesn't prompt for an input and returns immediately the injected value. Can be used for unit tests or pre selections.