Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/contentstack-audit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"dependencies": {
"@contentstack/cli-command": "~1.7.2",
"@contentstack/cli-utilities": "~1.17.0",
"@contentstack/cli-utilities": "~1.17.1",
"@oclif/core": "^4.3.0",
"@oclif/plugin-help": "^6.2.28",
"chalk": "^4.1.2",
Expand Down Expand Up @@ -83,4 +83,4 @@
"keywords": [
"oclif"
]
}
}
4 changes: 2 additions & 2 deletions packages/contentstack-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"dependencies": {
"@contentstack/cli-command": "~1.7.2",
"@contentstack/cli-utilities": "~1.17.0",
"@contentstack/cli-utilities": "~1.17.1",
"@oclif/core": "^4.3.0",
"@oclif/plugin-help": "^6.2.28",
"otplib": "^12.0.1"
Expand Down Expand Up @@ -81,4 +81,4 @@
}
},
"repository": "contentstack/cli"
}
}
2 changes: 1 addition & 1 deletion packages/contentstack-bootstrap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"dependencies": {
"@contentstack/cli-cm-seed": "~2.0.0-beta.5",
"@contentstack/cli-command": "~1.7.2",
"@contentstack/cli-utilities": "~1.17.0",
"@contentstack/cli-utilities": "~1.17.1",
"@oclif/core": "^4.3.0",
"@oclif/plugin-help": "^6.2.28",
"inquirer": "8.2.7",
Expand Down
4 changes: 2 additions & 2 deletions packages/contentstack-branches/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"@contentstack/cli-command": "~1.7.2",
"@oclif/core": "^4.3.0",
"@oclif/plugin-help": "^6.2.28",
"@contentstack/cli-utilities": "~1.17.0",
"@contentstack/cli-utilities": "~1.17.1",
"chalk": "^4.1.2",
"just-diff": "^6.0.2",
"lodash": "^4.17.21"
Expand Down Expand Up @@ -79,4 +79,4 @@
}
},
"repository": "https://github.com/contentstack/cli"
}
}
4 changes: 2 additions & 2 deletions packages/contentstack-bulk-publish/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dependencies": {
"@contentstack/cli-command": "~1.7.2",
"@contentstack/cli-config": "~1.18.0",
"@contentstack/cli-utilities": "~1.17.0",
"@contentstack/cli-utilities": "~1.17.1",
"@oclif/core": "^4.3.0",
"@oclif/plugin-help": "^6.2.28",
"chalk": "^4.1.2",
Expand Down Expand Up @@ -97,4 +97,4 @@
"version": "oclif readme && git add README.md",
"clean": "rm -rf ./node_modules tsconfig.build.tsbuildinfo"
}
}
}
2 changes: 1 addition & 1 deletion packages/contentstack-clone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@contentstack/cli-cm-export": "~2.0.0-beta.5",
"@contentstack/cli-cm-import": "~2.0.0-beta.5",
"@contentstack/cli-command": "~1.7.2",
"@contentstack/cli-utilities": "~1.17.0",
"@contentstack/cli-utilities": "~1.17.1",
"@oclif/core": "^4.3.0",
"@oclif/plugin-help": "^6.2.28",
"chalk": "^4.1.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/contentstack-command/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"test:unit": "mocha --timeout 10000 --forbid-only \"test/unit/**/*.test.ts\""
},
"dependencies": {
"@contentstack/cli-utilities": "~1.17.0",
"@contentstack/cli-utilities": "~1.17.1",
"contentstack": "^3.25.3",
"@oclif/core": "^4.3.0",
"@oclif/plugin-help": "^6.2.28"
Expand Down Expand Up @@ -64,4 +64,4 @@
"repositoryPrefix": "<%- repo %>/blob/main/packages/contentstack-command/<%- commandPath %>"
},
"repository": "contentstack/cli"
}
}
4 changes: 2 additions & 2 deletions packages/contentstack-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"dependencies": {
"@contentstack/cli-command": "~1.7.2",
"@contentstack/cli-utilities": "~1.17.0",
"@contentstack/cli-utilities": "~1.17.1",
"@oclif/core": "^4.3.0",
"@oclif/plugin-help": "^6.2.28",
"lodash": "^4.17.21"
Expand Down Expand Up @@ -80,4 +80,4 @@
}
},
"repository": "contentstack/cli"
}
}
2 changes: 1 addition & 1 deletion packages/contentstack-export/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"bugs": "https://github.com/contentstack/cli/issues",
"dependencies": {
"@contentstack/cli-command": "~1.7.2",
"@contentstack/cli-utilities": "~1.17.0",
"@contentstack/cli-utilities": "~1.17.1",
"@contentstack/cli-variants": "~2.0.0-beta.4",
"@oclif/core": "^4.8.0",
"async": "^3.2.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-seed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dependencies": {
"@contentstack/cli-cm-import": "~2.0.0-beta.5",
"@contentstack/cli-command": "~1.7.2",
"@contentstack/cli-utilities": "~1.17.0",
"@contentstack/cli-utilities": "~1.17.1",
"@contentstack/management": "~1.27.3",
"inquirer": "8.2.7",
"mkdirp": "^1.0.4",
Expand Down
4 changes: 2 additions & 2 deletions packages/contentstack-utilities/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentstack/cli-utilities",
"version": "1.17.0",
"version": "1.17.1",
"description": "Utilities for contentstack projects",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down Expand Up @@ -81,4 +81,4 @@
"ts-node": "^10.9.2",
"typescript": "^4.9.5"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,18 @@ export default class CLIProgressManager {
const process = this.processes.get(processName);
if (process) {
process.status = success ? 'completed' : 'failed';

// If process completed without ticks, update current to reflect completion
if (process.current === 0 && process.total > 0) {
process.current = process.total;
if (process.status === 'completed') {
process.successCount = process.total;
}
}

if (!this.showConsoleLogs && process.progressBar) {
const percentage = Math.round((process.current / process.total) * 100);
const totalProcessed = process.current;
const percentage = Math.round((totalProcessed / process.total) * 100);
const formattedPercentage = this.formatPercentage(percentage);
const statusText = success
? chalk.green(`✓ Complete (${process.successCount}/${process.current})`)
Expand Down
4 changes: 2 additions & 2 deletions packages/contentstack-variants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
"typescript": "^5.8.3"
},
"dependencies": {
"@contentstack/cli-utilities": "~1.17.0",
"@contentstack/cli-utilities": "~1.17.1",
"@oclif/core": "^4.3.0",
"@oclif/plugin-help": "^6.2.28",
"lodash": "^4.17.21",
"mkdirp": "^1.0.4",
"winston": "^3.17.0"
}
}
}
2 changes: 1 addition & 1 deletion packages/contentstack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@contentstack/cli-config": "~1.18.0",
"@contentstack/cli-launch": "1.9.3",
"@contentstack/cli-migration": "~2.0.0-beta.2",
"@contentstack/cli-utilities": "~1.17.0",
"@contentstack/cli-utilities": "~1.17.1",
"@contentstack/cli-variants": "~2.0.0-beta.4",
"@contentstack/management": "~1.27.3",
"@oclif/core": "^4.3.0",
Expand Down
Loading