Skip to content

Commit 68c04cb

Browse files
committed
feat(cli): remove multi-progress-bars and progress argument
1 parent f4b4a01 commit 68c04cb

File tree

67 files changed

+259
-932
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+259
-932
lines changed

e2e/ci-e2e/mocks/fixtures/npm-workspaces/packages/cli/_package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@example/cli",
33
"version": "1.2.3",
44
"scripts": {
5-
"code-pushup": "code-pushup --no-progress"
5+
"code-pushup": "code-pushup"
66
},
77
"dependencies": {
88
"@example/core": "1.2.3"

e2e/ci-e2e/mocks/fixtures/npm-workspaces/packages/core/_package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@example/core",
33
"version": "1.2.3",
44
"scripts": {
5-
"code-pushup": "code-pushup --no-progress"
5+
"code-pushup": "code-pushup"
66
},
77
"dependencies": {
88
"@example/utils": "1.2.3"

e2e/ci-e2e/mocks/fixtures/npm-workspaces/packages/utils/_package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"name": "@example/utils",
33
"version": "1.2.3",
44
"scripts": {
5-
"code-pushup": "code-pushup --no-progress"
5+
"code-pushup": "code-pushup"
66
}
77
}

e2e/ci-e2e/mocks/fixtures/nx-monorepo/apps/api/_project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"projectType": "application",
44
"targets": {
55
"code-pushup": {
6-
"command": "npx @code-pushup/cli --no-progress --config=apps/api/code-pushup.config.js"
6+
"command": "npx @code-pushup/cli --config=apps/api/code-pushup.config.js"
77
}
88
}
99
}

e2e/ci-e2e/mocks/fixtures/nx-monorepo/apps/cms/_project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"projectType": "application",
44
"targets": {
55
"code-pushup": {
6-
"command": "npx @code-pushup/cli --no-progress --config=apps/cms/code-pushup.config.js"
6+
"command": "npx @code-pushup/cli --config=apps/cms/code-pushup.config.js"
77
}
88
}
99
}

e2e/ci-e2e/mocks/fixtures/nx-monorepo/apps/web/_project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"projectType": "application",
44
"targets": {
55
"code-pushup": {
6-
"command": "npx @code-pushup/cli --no-progress --config=apps/web/code-pushup.config.js"
6+
"command": "npx @code-pushup/cli --config=apps/web/code-pushup.config.js"
77
}
88
}
99
}

e2e/ci-e2e/mocks/fixtures/nx-monorepo/libs/ui/_project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"projectType": "library",
44
"targets": {
55
"code-pushup": {
6-
"command": "npx @code-pushup/cli --no-progress --config=libs/ui/code-pushup.config.js"
6+
"command": "npx @code-pushup/cli --config=libs/ui/code-pushup.config.js"
77
}
88
}
99
}

e2e/ci-e2e/mocks/fixtures/nx-monorepo/libs/utils/_project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"projectType": "library",
44
"targets": {
55
"code-pushup": {
6-
"command": "npx @code-pushup/cli --no-progress --config=libs/utils/code-pushup.config.js"
6+
"command": "npx @code-pushup/cli --config=libs/utils/code-pushup.config.js"
77
}
88
}
99
}

e2e/cli-e2e/tests/__snapshots__/help.e2e.test.ts.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ Commands:
1818
1919
2020
Global Options:
21-
--progress Show progress bar in stdout.
22-
[boolean] [default: false in CI environment, otherwise true]
2321
--verbose When true creates more verbose output. This is helpful w
2422
hen debugging. You may also set CP_VERBOSE env variable
2523
instead. [boolean] [default: false]

e2e/cli-e2e/tests/collect.e2e.test.ts

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,7 @@ describe('CLI collect', () => {
5151
it('should create report.md', async () => {
5252
const { code } = await executeProcess({
5353
command: 'npx',
54-
args: [
55-
'@code-pushup/cli',
56-
'--no-progress',
57-
'collect',
58-
'--persist.format=md',
59-
],
54+
args: ['@code-pushup/cli', 'collect', '--persist.format=md'],
6055
cwd: dummyDir,
6156
});
6257

@@ -72,7 +67,7 @@ describe('CLI collect', () => {
7267
it('should write runner outputs if --cache is given', async () => {
7368
const { code } = await executeProcess({
7469
command: 'npx',
75-
args: ['@code-pushup/cli', '--no-progress', 'collect', '--cache'],
70+
args: ['@code-pushup/cli', 'collect', '--cache'],
7671
cwd: dummyDir,
7772
});
7873

@@ -94,12 +89,7 @@ describe('CLI collect', () => {
9489
it('should not create reports if --persist.skipReports is given', async () => {
9590
const { code } = await executeProcess({
9691
command: 'npx',
97-
args: [
98-
'@code-pushup/cli',
99-
'--no-progress',
100-
'collect',
101-
'--persist.skipReports',
102-
],
92+
args: ['@code-pushup/cli', 'collect', '--persist.skipReports'],
10393
cwd: dummyDir,
10494
});
10595

@@ -116,7 +106,7 @@ describe('CLI collect', () => {
116106
it('should print report summary to stdout', async () => {
117107
const { code, stdout } = await executeProcess({
118108
command: 'npx',
119-
args: ['@code-pushup/cli', '--no-progress', 'collect'],
109+
args: ['@code-pushup/cli', 'collect'],
120110
cwd: dummyDir,
121111
});
122112

0 commit comments

Comments
 (0)