Server : nginx/1.18.0 System : Linux localhost 6.14.3-x86_64-linode168 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 19:47:55 EDT 2025 x86_64 User : www-data ( 33) PHP Version : 8.0.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /var/www/ecommerce/node_modules/coa/ |
/// <reference types="q"/>
export const Arg: undefined;
export const Opt: undefined;
export function Cmd(cmd?: classes.Cmd): classes.Cmd;
export namespace classes {
class Arg {
constructor(cmd: Cmd);
name(name: string): Arg;
title(title: string): Arg;
arr(): Arg;
req(): Arg;
val(validation: (this: Arg, value: any) => boolean): Arg;
def(def: any): Arg;
output(): Arg;
comp(fn: (opts: any) => any): Arg;
end(): Cmd;
apply(...args: any[]): Arg;
input(): Arg;
reject(...args: any[]): Arg;
}
class Cmd {
constructor(cmd?: Cmd);
static create(cmd?: Cmd): Cmd;
api(): any;
name(name: string): Cmd;
title(title: string): Cmd;
cmd(cmd?: Cmd): Cmd;
opt(): Opt;
arg(): Arg;
act(act: (opts: any, args: any[], res: any) => any, force?: boolean): Cmd;
apply(fn: Function, args?: any[]): Cmd;
comp(fs: (opts: any) => any): Cmd;
helpful(): Cmd;
completable(): Cmd;
usage(): string;
run(argv: string[]): Cmd;
invoke(cmds?: string|string[], opts?: any, args?: any): Q.Promise<any>;
reject(reason: any): Q.Promise<any>;
end(): Cmd;
do(argv: string[]): any;
extendable(pattern?: string): Cmd;
}
class Opt {
constructor(cmd?: Cmd);
name(name: string): Opt;
title(title: string): Opt;
short(short: string): Opt;
long(long: string): Opt;
flag(): Opt;
arr(): Opt;
req(): Opt;
only(): Opt;
val(validation: (this: Opt, value: any) => boolean): Opt;
def(def: any): Opt;
input(): Opt;
output(): Opt;
act(act: (opts: any, args: any[], res: any) => any): Opt;
comp(fn: (opts: any) => any): Opt;
end(): Cmd;
apply(...args: any[]): void;
reject(...args: any[]): void;
}
}
export namespace shell {
function escape(w: string): string;
function unescape(w: string): string;
}