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

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

jzorn
Copy link

@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
Author

jzorn commented Apr 22, 2024

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

@jzorn
Copy link
Author

jzorn commented Apr 25, 2024

Friendly ping :)

Copy link

@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
Copy link
Author

jzorn commented Apr 29, 2024

That's a good improvement. Thanks @andreassiegel!

Copy link

@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
Author

jzorn commented May 2, 2024

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

@jzorn
Copy link
Author

jzorn commented May 10, 2024

Anything? :)

@jzorn
Copy link
Author

jzorn commented May 14, 2024

Friendly ping :)

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
2 participants