@qui-cli Plugin: Standardized shelljs wrapper
npm install @qui-cli/shell@qui-cli Plugin: Standardized shelljs wrapper


``sh`
npm install @qui-cli/shell @qui-cli/core
`ts
import { Shell } from '@qui-cli/shell';
import { Core } from '@qui-cli/core';
// configure Shell
Root.configure({ showCommands: true });
// use Shell
Shell.exec('echo "hello world"');
`
`ts`
export type Configuration = Plugin.Configuration & {
showCommands?: boolean;
silent?: boolean;
};
Whether or not to display the commands (rather than just their output) in the console, defaults to false.
Whether or not to show command output (and, potentially, commands themselves) in the console, defaults to true.
Shell exposes both showCommands and silent as user-configurable command line arguments.
After user-provided command line arguments are parsed, Shell is updated to reflect user-specified configuration.
`ts`
import { Shell } from '@qui-cli/shell';
Returns the actual shelljs object.
Execute an arbitrary command in the shell, optionally overriding the current silent setting.
Get the result of the most-recently executed command.
Whether or not the shell is currently set to silent.
Whether or not the shell is currently set to showCommands`.