UNPKG

@lakutata/core

Version:

Lakutata Framework Core

58 lines 1.69 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Shell = void 0; const Plugin_1 = require("../base/Plugin"); const shelljs = require('../lib/minified/ShellJs'); class Shell extends Plugin_1.Plugin { constructor() { super(...arguments); this.shelljs = shelljs; this.ls = this.shelljs.ls; this.find = this.shelljs.find; this.cp = this.shelljs.cp; this.rm = this.shelljs.rm; this.mv = this.shelljs.mv; this.mkdir = this.shelljs.mkdir; this.cat = this.shelljs.cat; this.sed = this.shelljs.sed; this.grep = this.shelljs.grep; this.echo = this.shelljs.echo; this.pushd = this.shelljs.pushd; this.popd = this.shelljs.popd; this.dirs = this.shelljs.dirs; this.ln = this.shelljs.ln; this.exec = this.shelljs.exec; this.chmod = this.shelljs.chmod; this.touch = this.shelljs.touch; this.head = this.shelljs.head; this.sort = this.shelljs.sort; this.tail = this.shelljs.tail; this.uniq = this.shelljs.uniq; } cd(dir) { return this.shelljs.cd(dir); } pwd() { return this.shelljs.pwd(); } test(option, path) { return this.shelljs.test(option, path); } which(command) { return this.shelljs.which(command); } exit(code) { return this.shelljs.exit(code); } tempdir() { return this.shelljs.tempdir(); } error() { return this.shelljs.error(); } set(options) { return this.shelljs.set(options); } } exports.Shell = Shell; //# sourceMappingURL=Shell.js.map