chore(*): use prettier for formatting
This commit is contained in:
parent
6c659fe1d0
commit
029caaaa9e
73 changed files with 1390 additions and 794 deletions
|
@ -12,18 +12,27 @@ import { runTasksMenu } from '../lib/tasks/index.js';
|
|||
process.on('unhandledRejection', (err) => handleExitError(err, 'Unhandled rejection'));
|
||||
process.on('uncaughtException', (err) => handleExitError(err, 'Uncaught exception'));
|
||||
|
||||
program.name('coryd').description('🪄 Handle tasks, run commands or jobs, download things and have fun.').version('3.2.5');
|
||||
program.command('init').description('Initialize CLI and populate required config.').action(async () => {
|
||||
const { initConfig } = await import('../lib/config.js');
|
||||
await initConfig();
|
||||
});
|
||||
program
|
||||
.name('coryd')
|
||||
.description('🪄 Handle tasks, run commands or jobs, download things and have fun.')
|
||||
.version('3.2.5');
|
||||
program
|
||||
.command('init')
|
||||
.description('Initialize CLI and populate required config.')
|
||||
.action(async () => {
|
||||
const { initConfig } = await import('../lib/config.js');
|
||||
await initConfig();
|
||||
});
|
||||
program.command('run [script]').description('Run site scripts and commands.').action(runRootScript);
|
||||
program.command('tasks').description('Handle repeated tasks.').action(runTasksMenu);
|
||||
program.command('jobs').description('Trigger jobs and scripts.').action(runJobsMenu);
|
||||
program.command('download').description('Download, name and store image assets.').action(async () => {
|
||||
const { downloadAsset } = await import('../lib/download.js');
|
||||
await downloadAsset();
|
||||
});
|
||||
program
|
||||
.command('download')
|
||||
.description('Download, name and store image assets.')
|
||||
.action(async () => {
|
||||
const { downloadAsset } = await import('../lib/download.js');
|
||||
await downloadAsset();
|
||||
});
|
||||
|
||||
if (process.argv.length <= 2) {
|
||||
const ascii = figlet.textSync('coryd.dev', { horizontalLayout: 'default' });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue