@@ -12,14 +12,14 @@ import './commands/languages';
1212import './commands/migrations' ;
1313import './commands/types' ;
1414
15- import { session } from './session ' ;
15+ import { colorPalette } from './constants ' ;
1616
1717export * from './types/storyblok' ;
1818
1919dotenv . config ( ) ; // This will load variables from .env into process.env
2020const program = getProgram ( ) ;
2121console . clear ( ) ;
22- const introText = chalk . bgHex ( '#45bfb9' ) . bold . black ( ` Storyblok CLI ` ) ;
22+ const introText = chalk . bgHex ( colorPalette . PRIMARY ) . bold ( ` Storyblok CLI ` ) ;
2323const messageText = ` ` ;
2424console . log ( formatHeader ( `
2525${ introText } ${ messageText } `) ) ;
@@ -32,29 +32,13 @@ program.on('command:*', () => {
3232 konsola . br ( ) ; // Add a line break
3333} ) ;
3434
35- program . command ( 'test' ) . action ( async ( ) => {
36- konsola . title ( `Test` , '#8556D3' , 'Attempting a test...' ) ;
37- const verbose = program . opts ( ) . verbose ;
38- try {
39- const { state, initializeSession } = session ( ) ;
40- await initializeSession ( ) ;
41-
42- if ( ! state . password ) {
43- throw new Error ( 'No password found' ) ;
44- }
45- }
46- catch ( error ) {
47- handleError ( error as Error , verbose ) ;
48- }
49- } ) ;
50-
5135/* console.log(`
52- ${chalk.hex('#45bfb9' )(' ─────╮')}
53- ${chalk.hex('#45bfb9' )('│ │')}
54- ${chalk.hex('#45bfb9' )('│')} ◠ ◡ ◠
55- ${chalk.hex('#45bfb9' )('|_ __| ')}
56- ${chalk.hex('#45bfb9' )(' |/ ')}
57- `) */
36+ ${chalk.hex(colorPalette.PRIMARY )(' ─ ─────╮')}
37+ ${chalk.hex(colorPalette.PRIMARY )('│ │')}
38+ ${chalk.hex(colorPalette.PRIMARY )('│')} ◠ ◡ ◠
39+ ${chalk.hex(colorPalette.PRIMARY )('╰─ ───╯ ')}
40+ ${chalk.hex(colorPalette.PRIMARY )(' |/ ')}
41+ `); */
5842
5943try {
6044 program . parse ( process . argv ) ;
0 commit comments