katello-client-bootstrap icon indicating copy to clipboard operation
katello-client-bootstrap copied to clipboard

[RFE] Standardize Exit codes

Open sideangleside opened this issue 7 years ago • 3 comments

Today we exit with non-zero exit code in the event of an error. Should we consider being more granular with our exit codes:

example, return 2 for 'system already registered' and 3 for 'unsupported puppet version'

sideangleside avatar Apr 05 '18 19:04 sideangleside

@evgeni thoughts?

sideangleside avatar Apr 16 '18 12:04 sideangleside

I think this is a good idea. :+1:

I wonder if we should follow https://github.com/theforeman/hammer-cli/blob/master/lib/hammer_cli/exit_codes.rb (at least where we can)

evgeni avatar Apr 16 '18 13:04 evgeni

dilly dilly

gearboxscott avatar Apr 16 '18 22:04 gearboxscott