-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
executable file
·28 lines (23 loc) · 891 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env node
import alert from 'cli-alerts';
import handleError from 'cli-handle-error';
import init from './utils/init.js';
import { social, bio } from './utils/data.js';
import cli from './utils/cli.js';
const { flags, input } = cli;
import debug from './utils/debug.js';
(async () => {
init();
console.log(bio);
if (flags.social) console.log(social);
if (flags.ad) alert({ type: 'info', msg: 'Ad: Check out SPG!' });
if (flags.debug) {
debug(cli);
}
})();
// console.log(`
// ${logSymbols.success} ${success('SUCCESS')}: Thank you for checking out the CLI.
// ${logSymbols.info} ${info('INFO')}: Your installation was successful.
// ${logSymbols.error} ${error('ERROR')}: There was an issue cloning the DevTools repository.
// ${logSymbols.warning} ${warning('WARNING')}: This command is still in beta. If you see anything wrong, please create an issue.
// `)