Skip to content

[Feature Request] Return Appropriate Exit Codes #131

Description

@cowofevil

Is your feature request related to a problem? Please describe.
I am using 'konsave' as part of some Ansible automation that I'm writing. Currently 'konsave' doesn't return exit codes from the CLI which makes it more difficult to detect a failure in Ansible automation.

Describe the solution you'd like
Return 0 on success and 1 on failure.

Look at this PR #130 for a proposal on how to implement this feature.

Describe alternatives you've considered
Right now I'm using a regex against the 'konsave' output to detect pass/fail, but that is unreliable as application is updated in the future.

Additional context
Nope.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions