/** * ------------------------------------------------------------------------ * OS Shell command support library * ------------------------------------------------------------------------ */ import sh from 'shelljs'; /** * Portable (Windows/Linux/OS X) implementation of Unix shell commands * based on [shelljs](https://github.com/shelljs/shelljs) * @link https://github.com/shelljs/shelljs * @module sh * @type {object} * @example * * Basic Example * * ```javascript * import { sh } from '@bb-cli/base'; * sh.ls(`./`) * // or * sh.exec(`ls ./`, function(exitCode, stdOut, stdErr) { * log.verbose('cmd exitcode:', exitCode); * log.verbose('cmd output:', stdOut); * log.verbose('cmd stderr:', stdErr); * }); * ``` */ export default sh;