Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/cliffy/prompt/mod.ts>GenericListOptions

Command line framework for deno ๐Ÿฆ• Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
interface GenericListOptions
implements Omit<GenericInputPromptOptions<TReturnValue, TRawValue>, UnsupportedInputOptions>
import { type GenericListOptions } from "https://deno.land/x/cliffy@v1.0.0-rc.1/prompt/mod.ts";

Generic list prompt options.

Type Parameters

TValue
TReturnValue
TRawValue

Properties

options: Array<
| Extract<TValue, string | number>
| Extract<WidenType<TValue>, string | number>
| GenericListSeparatorOption
>
optional
keys: GenericListKeys

Keymap to assign key names to prompt actions.

optional
listPointer: string

Change list pointer. Default is brightBlue("โฏ").

optional
maxRows: number

Limit max displayed rows per page.

optional
searchLabel: string

Change search label. Default is brightBlue("๐Ÿ”Ž").

optional
info: boolean

Display prompt info.

optional
maxBreadcrumbItems: number

Limit maximum amount of breadcrumb items.

optional
breadcrumbSeparator: string

Change breadcrumb separator. Default is โ€บ.

optional
backPointer: string

Change back pointer. Default is โฎ.

optional
groupPointer: string

Change group pointer. Default is โฏ.

optional
groupIcon: string | boolean

Change group icon. Default is ๐Ÿ“.

optional
groupOpenIcon: string | boolean

Change opened group icon. Default is ๐Ÿ“‚.

optional
format: (value: TValue) => string

Format option value.