vtex / toolbelt

CLI for creating and managing VTEX apps
MIT License
59 stars 20 forks source link

BUGFIX: add exit 1 when commands fail #1198

Closed ayelsew closed 6 months ago

ayelsew commented 1 year ago

What is the purpose of this pull request?

To solve the bug exit equals 0 when some commands become failed

What problem is this solving?

Commands like publish, uninstall, unlink when they fail the CLI doesn't return exit code 1, If someone use this in a CI/CD, the pipeline will run "normally" and won't fail with CLI vtex

How should this be manually tested?

Force some error like trying to publish a version that already exists: vtex publish The CLI must exit with status code 1 instead 0

Screenshots or example usage

Types of changes

Chores checklist

ayelsew commented 6 months ago

alleluia 🎉🎊