UNPKG

@tamara027/lerna-terminal

Version:
38 lines (32 loc) 1.39 kB
/* eslint no-console: 0*/ 'use strict'; var chalk = require('chalk'); var _require = require('../store'), getUiState = _require.getUiState; /** * @returns {void} **/ function renderHelp() { var out = []; out.join(''); out.join(chalk.bold('Help')); out.join(); out.join(' ' + chalk.bold('Usage')); out.join(' lerna-terminal~$ [command]'); out.join(); out.join(' ' + chalk.bold('Commands')); out.join(' [string] Focus one terminal panel and update current pwd'); out.join(' focus Leave focused mode (child process) and displays all terminal panels'); out.join(' focus [string] Focus one terminal panel and update current pwd'); out.join(' clear Clear all terminal panels'); out.join(' clear [string] Clear one terminal panel'); out.join(' start Start (or restart) the npm script (see Usage) in all terminal panels'); out.join(' start [string] Start (or restart) the npm script (see Usage) in one terminal panels'); out.join(' stop Stops the npm script (see Usage) in all terminal panels'); out.join(' stop [string] Stops the npm script (see Usage) in one terminal panels'); out.join(' exit Leave current child process and displays all terminal panels'); out.join(); out.join(); getUiState().print(out.join('\n')); } module.exports = renderHelp;