Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(#2122): add specific error status codes #2126

Merged
merged 14 commits into from
Jun 5, 2024

Conversation

jzorn
Copy link
Contributor

@jzorn jzorn commented Apr 18, 2024

Description

This change adds specific exit status codes to identify different problems programatically, fixes #2122

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

This change adds specific exit status codes to identify different problems programatically
@jzorn jzorn changed the title fix: add specific error status codes #2122 fix(#2122): add specific error status codes Apr 18, 2024
@jzorn
Copy link
Contributor Author

jzorn commented Apr 22, 2024

Hey, is there anything I can do to improve this PR to get it merged? :)

@jzorn
Copy link
Contributor Author

jzorn commented Apr 25, 2024

Friendly ping :)

Copy link
Contributor

@andreassiegel andreassiegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I second the idea of having more specific result codes or error codes. This has already helped a lot in CI/CD scripting with other tools, so I believe this is also helpful with Bruno CLI.

Please consider my suggestions for changes that might further improve the proposed changes.

packages/bruno-cli/src/constants.js Outdated Show resolved Hide resolved
packages/bruno-cli/src/constants.js Outdated Show resolved Hide resolved
packages/bruno-cli/src/commands/run.js Outdated Show resolved Hide resolved
packages/bruno-cli/src/commands/run.js Outdated Show resolved Hide resolved
packages/bruno-cli/src/commands/run.js Outdated Show resolved Hide resolved
packages/bruno-cli/src/commands/run.js Outdated Show resolved Hide resolved
packages/bruno-cli/src/commands/run.js Outdated Show resolved Hide resolved
packages/bruno-cli/src/commands/run.js Outdated Show resolved Hide resolved
packages/bruno-cli/src/commands/run.js Outdated Show resolved Hide resolved
packages/bruno-cli/src/commands/run.js Outdated Show resolved Hide resolved
jzorn and others added 12 commits April 29, 2024 09:56
Co-authored-by: Andreas Siegel <mail@andreassiegel.de>
Co-authored-by: Andreas Siegel <mail@andreassiegel.de>
Co-authored-by: Andreas Siegel <mail@andreassiegel.de>
Co-authored-by: Andreas Siegel <mail@andreassiegel.de>
Co-authored-by: Andreas Siegel <mail@andreassiegel.de>
Co-authored-by: Andreas Siegel <mail@andreassiegel.de>
Co-authored-by: Andreas Siegel <mail@andreassiegel.de>
Co-authored-by: Andreas Siegel <mail@andreassiegel.de>
Co-authored-by: Andreas Siegel <mail@andreassiegel.de>
Co-authored-by: Andreas Siegel <mail@andreassiegel.de>
Co-authored-by: Andreas Siegel <mail@andreassiegel.de>
Co-authored-by: Andreas Siegel <mail@andreassiegel.de>
@jzorn
Copy link
Contributor Author

jzorn commented Apr 29, 2024

That's a good improvement. Thanks @andreassiegel!

Copy link
Contributor

@andreassiegel andreassiegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, I like this!

@jzorn
Copy link
Contributor Author

jzorn commented May 2, 2024

@helloanoop Hey, did you have time to look at this change? Thanks! :)

@jzorn
Copy link
Contributor Author

jzorn commented May 10, 2024

Anything? :)

@jzorn
Copy link
Contributor Author

jzorn commented May 14, 2024

Friendly ping :)

@jzorn
Copy link
Contributor Author

jzorn commented May 21, 2024

Is there anything I missed? Do I need to follow a different process to get a change merged?

@jzorn
Copy link
Contributor Author

jzorn commented Jun 4, 2024

Anything @helloanoop ?

@helloanoop helloanoop merged commit 811a6e6 into usebruno:main Jun 5, 2024
@helloanoop
Copy link
Contributor

Merged. Thank you @jzorn !

Thank you @andreassiegel @lohxt1 for the review.
This will be shipped in today's release.

jwetzell pushed a commit to jwetzell/bruno that referenced this pull request Aug 2, 2024
* fix: add specific error status codes usebruno#2122

This change adds specific exit status codes to identify different problems programatically

* feat(usebruno#2122): Document the cli exit status codes

* Update packages/bruno-cli/src/constants.js

Co-authored-by: Andreas Siegel <mail@andreassiegel.de>

* Update packages/bruno-cli/src/constants.js

Co-authored-by: Andreas Siegel <mail@andreassiegel.de>

* Update packages/bruno-cli/src/commands/run.js

Co-authored-by: Andreas Siegel <mail@andreassiegel.de>

* Update packages/bruno-cli/src/commands/run.js

Co-authored-by: Andreas Siegel <mail@andreassiegel.de>

* Update packages/bruno-cli/src/commands/run.js

Co-authored-by: Andreas Siegel <mail@andreassiegel.de>

* Update packages/bruno-cli/src/commands/run.js

Co-authored-by: Andreas Siegel <mail@andreassiegel.de>

* Update packages/bruno-cli/src/commands/run.js

Co-authored-by: Andreas Siegel <mail@andreassiegel.de>

* Update packages/bruno-cli/src/commands/run.js

Co-authored-by: Andreas Siegel <mail@andreassiegel.de>

* Update packages/bruno-cli/src/commands/run.js

Co-authored-by: Andreas Siegel <mail@andreassiegel.de>

* Update packages/bruno-cli/src/commands/run.js

Co-authored-by: Andreas Siegel <mail@andreassiegel.de>

* Update packages/bruno-cli/src/commands/run.js

Co-authored-by: Andreas Siegel <mail@andreassiegel.de>

* Update packages/bruno-cli/src/commands/run.js

Co-authored-by: Andreas Siegel <mail@andreassiegel.de>

---------

Co-authored-by: Andreas Siegel <mail@andreassiegel.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cli does not yield specific exit codes for different problems
3 participants