How to use the @absolunet/terminal.terminal.startSpinner function in @absolunet/terminal

To help you get started, we’ve selected a few @absolunet/terminal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github absolunet / nwayo / packages / workflow / cli / doctor.js View on Github external
async cli(meowCli) {
		cli.refuseArguments(meowCli);

		const { verbose: flagVerbose } = cli.validateFlags(meowCli, {
			verbose: ow.boolean
		});
		verbose = flagVerbose;


		terminal.spacer();
		const spinner = terminal.startSpinner(`Diagnosing ${chalk.cyan(env.packageConfig.name)}...`);

		//-- Load here to speed up spinner first display
		/* eslint-disable global-require */
		const pluralize = require('pluralize');
		const fss       = require('@absolunet/fss');
		const paths     = require('~/helpers/paths');
		const tester    = require('~/helpers/doctor/tester');
		/* eslint-enable global-require */


		const [general, root, bundles, components, workflow, vendors, sync] = await Promise.all([
			tester.general(),
			tester.root(),
			tester.bundles(),
			tester.components(),
			tester.workflowUpdates(),