How to use cli-columns - 1 common examples

To help you get started, we’ve selected a few cli-columns 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 shannonmoeller / ygor / packages / tasks / src / tasks.js View on Github external
function run(name) {
		const keys = Object.keys(registry);
		const promise = Promise.resolve();

		if (keys.length === 0) {
			return promise;
		}

		name = name || options._.shift() || 'default';

		const task = registry[name];

		if (!task) {
			console.log(columns(keys));

			return promise;
		}

		const done = time(name, options);

		return promise.then(() => task(options, subtasks)).then(done);
	}

cli-columns

Columnated lists for the CLI.

MIT
Latest version published 3 years ago

Package Health Score

62 / 100
Full package analysis

Popular cli-columns functions