@@ -6,17 +6,9 @@ import {
66} from '@code-pushup/utils' ;
77
88export function printCliCommand ( command : string ) : void {
9- logger . debug ( `Running ${ ansis . bold ( command ) } command\n ` ) ;
9+ logger . debug ( `Running ${ ansis . bold ( command ) } command` ) ;
1010}
1111
12- export function renderConfigureCategoriesHint ( ) : void {
13- logger . debug (
14- `💡 Configure categories to see the scores in an overview table. See: ${ formatAsciiLink (
15- 'https://github.com/code-pushup/cli/blob/main/packages/cli/README.md' ,
16- ) } `,
17- { force : true } ,
18- ) ;
19- }
2012export function uploadSuccessfulLog ( url : string ) : void {
2113 logger . info ( ansis . green ( 'Upload successful!' ) ) ;
2214 logger . info ( formatAsciiLink ( url ) ) ;
@@ -26,23 +18,35 @@ export function collectSuccessfulLog(): void {
2618 logger . info ( ansis . green ( 'Collecting report successful!' ) ) ;
2719}
2820
29- export function renderIntegratePortalHint ( ) : void {
21+ export function renderCategoriesHint ( ) : void {
22+ logger . info (
23+ formatAsciiSticker ( [
24+ ansis . bold . gray ( '💡 Configure categories' ) ,
25+ '' ,
26+ ansis . gray ( '❯ Aggregate audit scores to get a high-level overview' ) ,
27+ `${ ansis . gray ( '❯' ) } ${ formatAsciiLink ( 'https://www.npmjs.com/package/@code-pushup/cli' ) } ` ,
28+ ] ) ,
29+ ) ;
30+ }
31+
32+ export function renderPortalHint ( ) : void {
33+ logger . info (
34+ formatAsciiSticker ( [
35+ ansis . bold . gray ( '💡 Upload report to Portal' ) ,
36+ '' ,
37+ ansis . gray ( '❯ Visualize reports in an interactive UI' ) ,
38+ ansis . gray ( '❯ Track long-term progress via reports history' ) ,
39+ `${ ansis . gray ( '❯' ) } ${ formatAsciiLink ( 'https://code-pushup.dev/' ) } ` ,
40+ ] ) ,
41+ ) ;
42+ }
43+
44+ export function renderUploadHint ( ) : void {
3045 logger . info (
3146 formatAsciiSticker ( [
32- ansis . bold . gray ( '💡 Integrate the portal ' ) ,
47+ ansis . bold . gray ( '💡 Upload report to Portal ' ) ,
3348 '' ,
34- `${ ansis . gray ( '❯' ) } Upload a report to the server - ${ ansis . gray (
35- 'npx code-pushup upload' ,
36- ) } `,
37- ` ${ formatAsciiLink (
38- 'https://github.com/code-pushup/cli/tree/main/packages/cli#upload-command' ,
39- ) } `,
40- `${ ansis . gray ( '❯' ) } ${ ansis . gray ( 'Portal Integration' ) } - ${ formatAsciiLink (
41- 'https://github.com/code-pushup/cli/blob/main/packages/cli/README.md#portal-integration' ,
42- ) } `,
43- `${ ansis . gray ( '❯' ) } ${ ansis . gray ( 'Upload Command' ) } - ${ formatAsciiLink (
44- 'https://github.com/code-pushup/cli/blob/main/packages/cli/README.md#portal-integration' ,
45- ) } `,
49+ `${ ansis . gray ( '❯' ) } npx code-pushup upload` ,
4650 ] ) ,
4751 ) ;
4852}
0 commit comments