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

x/alloy_folk/deps.ts

An application installer for restriced macOS
Go to Latest
import * as alloyFolk from "https://deno.land/x/alloy_folk@v1.1.1/deps.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.

Generates shell completion scripts for various shell's.

Confirm prompt representation.

Enum type. Allows only provided values.

Integer type.

Generic input prompt representation.

Generic list prompt representation.

Generic prompt representation.

Generates well formatted and colored help output for specified command.

Input prompt representation.

List prompt representation.

Number prompt representation.

Number type.

Row representation.

Secret prompt representation.

Select prompt representation.

String type. Allows any value.

Table representation.

Toggle prompt representation.

c
cliffy.Type
abstract

Base class for custom types.

Checkbox prompt representation.

Confirm prompt representation.

Generic input prompt representation.

Generic list prompt representation.

Generic prompt representation.

Input prompt representation.

List prompt representation.

Number prompt representation.

Secret prompt representation.

Select prompt representation.

Toggle prompt representation.

Used to construct an HTTP server.

Enums

Available build-in argument types.

Variables

Chainable ansi escape sequence's. 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 sequence's. If invoked as method, a new Tty instance will be returned.

An wrapper for WebCrypto adding support for additional non-standard algorithms, but delegating to the runtime WebCrypto implementation whenever possible.

Prompt icons.

Functions

Make an assertion, error will be thrown if expr does not have truthy value.

Make an assertion that actual and expected are almost equal numbers through a given tolerance. It can be used to take into account IEEE-754 double-precision floating-point representation limitations. If the values are not almost equal then throw.

Make an assertion that actual includes the expected values. If not then an error will be thrown.

Make an assertion that actual and expected are equal, deeply. If not deeply equal, then throw.

Make an assertion that actual is not null or undefined. If not then throw.

Make an assertion, error will be thrown if expr have truthy value.

Make an assertion that obj is an instance of type. If not then throw.

Make an assertion that error is an Error. If not then an error will be thrown. An error class and a string that should be included in the error message can also be asserted.

Make an assertion that actual match RegExp expected. If not then throw.

Make an assertion that actual and expected are not equal, deeply. If not then throw.

Make an assertion that actual not match RegExp expected. If match then throw.

Make an assertion that actual and expected are not strictly equal. If the values are strictly equal then throw.

Make an assertion that actual object is a subset of expected object, deeply. If not, then throw.

Executes a function which returns a promise, expecting it to throw or reject. If it does not, then it throws. An error class and a string that should be included in the error message can also be asserted. Or you can pass a callback which will be passed the error, usually to apply some custom assertions on it.

Make an assertion that actual and expected are strictly equal. If not then throw.

Make an assertion that actual includes expected. If not then throw.

Executes a function, expecting it to throw. If it does not, then it throws. An error class and a string that should be included in the error message can also be asserted. Or you can pass a callback which will be passed the error, usually to apply some custom assertions on it.

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.

Flags post validation. Validations that are not already done by the parser.

Copies from src to dst until either EOF (null) is read from src or an error occurs. It resolves to the number of bytes copied or rejects with the first error encountered while copying.

Deep equality comparison used in assertions

Forcefully throws a failed assertion

Turns a Reader, r, into an async iterator.

Turns a ReaderSync, r, into an iterator.

f
listenAndServe
deprecated

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

Create a ReadableStream from any kind of iterable.

Create a ReadableStream<Uint8Array> from from a Deno.Reader.

Read Reader r until EOF (null) and resolve to the content as Uint8Array`.

Synchronously reads Reader r until EOF (null) and returns the content as Uint8Array.

Create a Deno.Reader from an iterable of Uint8Arrays.

Create a Reader from a ReadableStreamDefaultReader.

Serves HTTP requests with the given handler.

Constructs a server, accepts incoming connections on the given listener, and handles requests on these connections with the given handler.

Serves HTTPS requests with the given handler.

Use this to stub out methods that will throw when invoked.

Use this to assert unreachable code.

Create a WritableStream from a Writer.

Write all the content of the array buffer (arr) to the writer (w).

Synchronously write all the content of the array buffer (arr) to the writer (w).

Create a Writer from a WritableStreamDefaultWriter.

Interfaces

Ansi instance returned by all ansi escape properties.

Chainable ansi escape method declarations.

Checkbox key options.

Checkbox option options.

Checkbox prompt options.

Checkbox option settings.

Confirm prompt options.

Cursor position.

Cursor position 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.

Global prompt options.

Argument details.

Cell options.

Command option options.

Completion options.

Completion settings.

Environment variable settings.

Environment variable options

Example settings.

Flag argument definition.

Flag options.

Result of the parseFlags method.

Environment variable options

Image options.

Input prompt options.

Command option settings.

Parser options.

Result of cmd.parse() method.

Row options.

Table options.

Table settings.

Type settings.

Type details.

Type options.

List prompt options.

Number key options.

Number prompt 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.

Information about the connection a request arrived on.

Checkbox key options.

Checkbox option options.

Checkbox prompt options.

Checkbox option settings.

Confirm prompt 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.

Global prompt options.

Input prompt options.

List prompt options.

Number key options.

Number prompt options.

Secret prompt options.

Select prompt options.

Select prompt settings.

Static generic prompt interface.

Toggle key options.

Generic prompt options.

Additional serve options.

Options for running an HTTP server.

Type Aliases

Chainable ansi escape sequence's. 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.

Action handler for commands and options.

Border characters settings.

Cell type

Type parser method.

Json row.

Default flag value

Description handler.

Value handler for custom value processing.

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

Row type

Table type.

Custom type handler/parser.

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

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 sequence's. If invoked as method, a new Tty instance will be returned.

Create new Tty instance.

Prompt validation return tape.

A handler for HTTP requests. Consumes a request and connection information and returns a response.

Checkbox options type.

Checkbox option settings type.

List key options.

Secret key options.

Select key options.

Select option options.

Select option settings.

Select options type.

Select option settings type.

Prompt validation return tape.