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

x/lume/deps/cliffy.ts

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
import * as lume from "https://deno.land/x/lume@v1.18.3/deps/cliffy.ts";

Classes

Completion list type.

Boolean type with auto completion. Allows true, false, 0 and 1.

Cell representation.

Checkbox prompt representation.

String type with auto completion of child command names.

String type with auto completion of sibling command names.

Generates shell completion scripts for various shells.

Confirm prompt representation.

Enum type. Allows only provided values.

Integer type.

c
GenericInput
abstract

Generic input prompt representation.

c
GenericList
abstract

Generic list prompt representation.

c
GenericPrompt
abstract

Generic prompt representation.

Generates well formatted and colored help output for specified command.

Input prompt representation.

Integer type.

List prompt representation.

Number prompt representation.

Number type.

c
Provider
abstract

Row representation.

Secret prompt representation.

Select prompt representation.

String type. Allows any value.

Table representation.

Toggle prompt representation.

c
Type
abstract

Base class for custom types.

Enums

E
OptionType
deprecated

Variables

Chainable ansi escape sequences. If invoked as method, a new Ansi instance will be returned.

Ring audio bell: \u0007

Boolean type handler. Excepts true, false, 1, 0

Clear the terminal screen. (Viewport)

Clear the whole terminal, including scrollback buffer. (Not just the visible part of it).

Hide cursor.

Move cursor to first column of current row.

Get cursor position.

Restore cursor.

Save cursor.

Show cursor.

Clear current line.

Clear to line end.

Clear to line start.

Clear screen.

Prompt icons.

Base key mapping.

Ctrl key mapping.

Shift key mapping.

Number type handler. Excepts any numeric value.

Special key mapping.

String type handler. Excepts any value.

Chainable ansi escape sequences. If invoked as method, a new Tty instance will be returned.

Functions

Move cursor backward by n lines.

Move cursor down by n lines.

Move cursor forward by n lines.

Move cursor by offset.

Move cursor to the beginning of the line n lines down.

Move cursor to the beginning of the line n lines up.

Move cursor to x, y, counting from the top left corner.

Move cursor up by n lines.

Clear screen down by n lines.

Clear screen and move cursor by n lines up and move cursor to first column.

Clear screen up by n lines.

Get cursor position.

Create image.

Inject prompt values. Can be used for unit tests or pre selections.

Create link.

Parse ansi escape sequence.

Parse command line arguments.

Scroll window down by n lines.

Scroll window up by n lines.

Interfaces

Ansi instance returned by all ansi escape properties.

Argument details.

Flag argument definition.

Type details.

Chainable ansi escape method declarations.

Checkbox key options.

Checkbox option options.

Checkbox prompt options.

Checkbox option settings.

Result of cmd.parse() method.

Completion options.

Completion settings.

Confirm prompt options.

Cursor position.

Cursor position options.

Environment variable settings.

Environment variable options

Example settings.

Flag options.

Input keys options.

Generic input prompt options.

Generic input prompt settings.

Select key options.

Generic list option options.

Generic list prompt options.

Generic list option settings.

Generic list prompt settings.

Input keys options.

Generic prompt options.

Generic prompt settings.

Environment variable options

Command option options.

Global prompt options.

Cell options.

Image options.

Input prompt options.

Row options.

Table options.

Table settings.

List prompt options.

Number key options.

Number prompt options.

Command option settings.

Result of the parseFlags method.

Parser options.

Secret prompt options.

Select prompt options.

Select prompt settings.

Static generic prompt interface.

Toggle key options.

Generic prompt options.

Ansi instance returned by all ansi escape properties.

Create new Ansi instance.

Type settings.

Type options.

Type Aliases

Action handler for commands and options.

Chainable ansi escape sequences. If invoked as method, a new Ansi instance will be returned.

Create new Ansi instance.

Checkbox options type.

Checkbox option settings type.

Chainable colors module. If invoked as method, a new Colors instance will be returned.

Chainable colors instance returned by all ansi escape properties.

Create new Colors instance.

Type parser method.

Default flag value

Description handler.

Description handler.

Help callback method to print the help. Invoked by the --help option and help command and the .getHelp() and .showHelp() methods.

T
IAction
deprecated
T
IArgument
deprecated

Border characters settings.

Cell type

T
ICommandOption
deprecated
T
ICompleteHandler
deprecated
T
ICompleteOptions
deprecated
T
ICompletion
deprecated

Json row.

T
IDescription
deprecated
T
IEnvVar
deprecated
T
IEnvVarOptions
deprecated
T
IExample
deprecated
T
IHelpHandler
deprecated
T
IOption
deprecated
T
IParseResult
deprecated

Row type

Table type.

T
IType
deprecated
T
ITypeOptions
deprecated
T
IVersionHandler
deprecated

List key options.

Secret key options.

Select key options.

Select option options.

Select option settings.

Select options type.

Select option settings type.

Chainable ansi escape sequences. If invoked as method, a new Tty instance will be returned.

Create new Tty instance.

Custom type handler/parser.

T
TypeValue
deprecated

Prompt validation return tape.

Value handler for custom value processing.

Version callback method to print the version. Invoked by the --help option command and the .getVersion() and .showHelp() methods.