File tree Expand file tree Collapse file tree 1 file changed +6
-16
lines changed
Expand file tree Collapse file tree 1 file changed +6
-16
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env -S node --no-warnings=ExperimentalWarning
2-
3- import figlet from 'figlet' ;
4- import { Command } from '@commander-js/extra-typings' ;
2+ import * as fs from 'node:fs' ;
3+ import { Command } from '@commander-js/extra-typings' ;
54import chalk from 'chalk' ;
5+ import figlet from 'figlet' ;
66import * as commands from './commands/index.js' ;
7- // @ts -ignore
8- import pkg from '../package.json' assert { type : 'json ' } ;
9-
107const fusionString = figlet . textSync ( 'Fusion' ) . split ( '\n' ) ;
118const authString = figlet . textSync ( 'Auth' ) . split ( '\n' ) ;
12-
139fusionString . forEach ( ( line , i ) => {
14- console . log ( chalk . white ( line ) + chalk . hex ( '#F58320' ) ( authString [ i ] ) ) ;
10+ console . log ( chalk . white ( line ) + chalk . hex ( '#F58320' ) ( authString [ i ] ) ) ;
1511} ) ;
16-
1712const program = new Command ( ) ;
18- program
19- . name ( '@fusionauth/cli' )
20- . description ( 'CLI for FusionAuth' )
21- . version ( pkg . version ) ;
22-
23- Object . values ( commands ) . forEach ( command => program . addCommand ( command ) ) ;
24-
13+ program . name ( '@fusionauth/cli' ) . description ( 'CLI for FusionAuth' ) ;
14+ Object . values ( commands ) . forEach ( ( command ) => program . addCommand ( command ) ) ;
2515program . parse ( ) ;
You can’t perform that action at this time.
0 commit comments