Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/powar/deps.ts

A simple but powerful TypeScript-based dot-file manager.
Go to Latest
import * as powar from "https://deno.land/x/powar@1.0.2/deps.ts";

Namespaces

Utilities for working with Deno's readers, writers, and web streams.

Utilities for working with OS-specific file paths.

Classes

Completion list type.

Generates bash completions script.

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

String type with auto completion of child command names.

Chainable command factory class.

String type with auto completion of sibling command names.

Generates shell completion scripts for various shells.

Enum type. Allows only provided values.

Integer type.

Generates fish completions script.

Generates well formatted and colored help output for specified command.

Integer type.

Number type.

String type. Allows any value.

c
cliffy.Type
abstract

Base class for custom types.

Generates zsh completions script.

A variable-sized buffer of bytes with read() and write() methods.

BufWriter implements buffering for an deno.Writer object. If an error occurs writing to a Writer, no more data will be accepted and all subsequent writes, and flush(), will return the error. After all data has been written, the client should call the flush() method to guarantee all data has been forwarded to the underlying deno.Writer.

BufWriterSync implements buffering for a deno.WriterSync object. If an error occurs writing to a WriterSync, no more data will be accepted and all subsequent writes, and flush(), will return the error. After all data has been written, the client should call the flush() method to guarantee all data has been forwarded to the underlying deno.WriterSync.

Reader utility for combining multiple readers

Reader utility for strings.

Writer utility for buffering string chunks.

Functions

Copy N size at the most. If read size is lesser than N, then returns nread

Read delimited bytes from a Reader.

Read big endian 32bit integer from BufReader

Read strings line-by-line from a Reader.

Read big endian 64bit long from BufReader

Read a range of bytes from a file or other resource that is readable and seekable. The range start and end are inclusive of the bytes within that range.

Read a range of bytes synchronously from a file or other resource that is readable and seekable. The range start and end are inclusive of the bytes within that range.

Read big endian 16bit short from BufReader

Read Reader chunk by chunk, splitting based on delimiter.

Slice number into 64bit big endian byte array

Determines the common path from a set of paths, using an optional separator, which defaults to the OS default separator.

Convert a glob string to a regular expression.

Test whether the given string is a glob

Like join(), but doesn't collapse "**/.." when globstar is true.

Like normalize(), but doesn't collapse "**/.." when globstar is true.

Interfaces

Argument details.

Argument parsing informations.

Result of cmd.parse() method.

Completion options.

Completion settings.

Environment variable settings.

Environment variable options

Example settings.

Environment variable options

Command option options.

Command option settings.

Type settings.

Type options.

Result type returned by of BufReader.readLine().

A parsed path object generated by path.parse() or consumed by path.format().

Type Aliases

Action handler for commands and options.

Type parser method.

Default flag value or a callback method that returns the default 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
cliffy.IAction
deprecated
T
cliffy.IArgument
deprecated
T
cliffy.IEnvVar
deprecated
T
cliffy.IExample
deprecated
T
cliffy.IOption
deprecated
T
cliffy.IType
deprecated

Parse method for custom types. Gets the raw user input passed as argument and returns the parsed value.

T
cliffy.TypeValue
deprecated

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