1- import { bold , gray } from 'ansis' ;
2- import { link , ui } from '@code-pushup/utils' ;
1+ import ansis from 'ansis' ;
2+ import { link , logger , ui } from '@code-pushup/utils' ;
33
44export function renderConfigureCategoriesHint ( ) : void {
5- ui ( ) . logger . info (
6- gray (
7- `💡 Configure categories to see the scores in an overview table. See: ${ link (
8- 'https://github.com/code-pushup/cli/blob/main/packages/cli/README.md' ,
9- ) } `,
10- ) ,
5+ logger . debug (
6+ `💡 Configure categories to see the scores in an overview table. See: ${ link (
7+ 'https://github.com/code-pushup/cli/blob/main/packages/cli/README.md' ,
8+ ) } `,
9+ { force : true } ,
1110 ) ;
1211}
1312export function uploadSuccessfulLog ( url : string ) : void {
14- ui ( ) . logger . success ( 'Upload successful!' ) ;
15- ui ( ) . logger . success ( link ( url ) ) ;
13+ logger . info ( ansis . green ( 'Upload successful!' ) ) ;
14+ logger . info ( link ( url ) ) ;
1615}
1716
1817export function collectSuccessfulLog ( ) : void {
19- ui ( ) . logger . success ( 'Collecting report successful!' ) ;
18+ logger . info ( ansis . green ( 'Collecting report successful!' ) ) ;
2019}
2120
2221export function renderIntegratePortalHint ( ) : void {
22+ // TODO: replace @poppinss /cliui
2323 ui ( )
2424 . sticker ( )
25- . add ( bold . gray ( '💡 Integrate the portal' ) )
25+ . add ( ansis . bold . gray ( '💡 Integrate the portal' ) )
2626 . add ( '' )
2727 . add (
28- `${ gray ( '❯' ) } Upload a report to the server - ${ gray (
28+ `${ ansis . gray ( '❯' ) } Upload a report to the server - ${ ansis . gray (
2929 'npx code-pushup upload' ,
3030 ) } `,
3131 )
@@ -35,12 +35,12 @@ export function renderIntegratePortalHint(): void {
3535 ) } `,
3636 )
3737 . add (
38- `${ gray ( '❯' ) } ${ gray ( 'Portal Integration' ) } - ${ link (
38+ `${ ansis . gray ( '❯' ) } ${ ansis . gray ( 'Portal Integration' ) } - ${ link (
3939 'https://github.com/code-pushup/cli/blob/main/packages/cli/README.md#portal-integration' ,
4040 ) } `,
4141 )
4242 . add (
43- `${ gray ( '❯' ) } ${ gray ( 'Upload Command' ) } - ${ link (
43+ `${ ansis . gray ( '❯' ) } ${ ansis . gray ( 'Upload Command' ) } - ${ link (
4444 'https://github.com/code-pushup/cli/blob/main/packages/cli/README.md#portal-integration' ,
4545 ) } `,
4646 )
0 commit comments