feat(sade): expose handler (#45177)

This commit is contained in:
Alexandre Breteau 2020-06-24 08:56:27 +02:00 committed by GitHub
parent b39ec0b981
commit ccd94f1448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,14 +6,14 @@
import * as mri from 'mri';
type Handler = (...args: any[]) => void;
/**
* Sade is a small but powerful tool for building command-line interface (CLI) applications for Node.js that are fast, responsive, and helpful!
* It enables default commands, git-like subcommands, option flags with aliases, default option values with type-casting,
* required-vs-optional argument handling, command validation, and automated help text generation!
*/
declare namespace sade {
type Handler = (...args: any[]) => any;
interface CommandOptions {
/**
* Optionally define one or more aliases for the current Command.