Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/cliffy/packages/prompt/mod.ts>GenericList

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
class GenericList
extends GenericPrompt<T, V, S>
Re-export
Abstract
import { GenericList } from "https://deno.land/x/cliffy@v0.6.0/packages/prompt/mod.ts";

Type Parameters

T
V
S extends GenericListSettings<T, V>

Properties

protected
index: number
protected
selected: number

Methods

protected
clear()
protected
height()
protected
read(): Promise<boolean>
protected
selectNext(): Promise<void>
protected
selectPrevious(): Promise<void>
protected
setPrompt(message: string)
protected
abstract
writeListItem(item: GenericListOptionSettings, isSelected?: boolean): void
protected
writeListItems()

Static Methods

protected
mapItem(item: GenericListOption): GenericListOptionSettings
protected
mapValues(optValues: GenericListValueOptions): GenericListOption[]
separator(label?: string): GenericListOption