UNPKG

@lakutata/core

Version:

Lakutata Framework Core

40 lines (39 loc) 1.35 kB
import { Plugin } from '../base/Plugin'; import { CatFunction, ChmodFunction, CopyFunction, DirsFunction, EchoFunction, ExecFunction, FindFunction, GrepFunction, HeadFunction, LinkFunction, ListFunction, MkdirFunction, MoveFunction, PopDirFunction, PushDirFunction, RemoveFunction, SedFunction, ShellString, SortFunction, TailFunction, TestOptions, TouchFunction, UniqFunction } from '../interfaces/ShellJsInterfaces'; declare module '../Core' { interface Application { Shell: Shell; } } export declare class Shell extends Plugin { protected shelljs: any; cd(dir?: string): ShellString; pwd(): ShellString; test(option: TestOptions, path: string): boolean; which(command: string): ShellString; exit(code?: number): never; tempdir(): ShellString; error(): ShellString; set(options: string): void; ls: ListFunction; find: FindFunction; cp: CopyFunction; rm: RemoveFunction; mv: MoveFunction; mkdir: MkdirFunction; cat: CatFunction; sed: SedFunction; grep: GrepFunction; echo: EchoFunction; pushd: PushDirFunction; popd: PopDirFunction; dirs: DirsFunction; ln: LinkFunction; exec: ExecFunction; chmod: ChmodFunction; touch: TouchFunction; head: HeadFunction; sort: SortFunction; tail: TailFunction; uniq: UniqFunction; }