Mercurial > libervia-backend
comparison sat/core/constants.py @ 3406:4c15271118a2
core (constants): moved shell exit code constants to core constants:
Well defined shell exit code are generally useful, not only for jp, thus constants have been
moved to core.
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 12 Nov 2020 14:53:15 +0100 |
parents | ecdb3728749e |
children | 63d20854df3a |
comparison
equal
deleted
inserted
replaced
3405:ecdb3728749e | 3406:4c15271118a2 |
---|---|
373 ORDER_BY_MODIFICATION = 'modification' | 373 ORDER_BY_MODIFICATION = 'modification' |
374 | 374 |
375 # internationalisation | 375 # internationalisation |
376 DEFAULT_LOCALE = "en_GB" | 376 DEFAULT_LOCALE = "en_GB" |
377 | 377 |
378 ## Command Line ## | |
379 | |
380 # Exit codes used by CLI applications | |
381 EXIT_OK = 0 | |
382 EXIT_ERROR = 1 # generic error, when nothing else match | |
383 EXIT_BAD_ARG = 2 # arguments given by user are bad | |
384 EXIT_BRIDGE_ERROR = 3 # can't connect to bridge | |
385 EXIT_BRIDGE_ERRBACK = 4 # something went wrong when calling a bridge method | |
386 EXIT_NOT_FOUND = 16 # an item required by a command was not found | |
387 EXIT_DATA_ERROR = 17 # data needed for a command is invalid | |
388 EXIT_MISSING_FEATURE = 18 # a needed plugin or feature is not available | |
389 EXIT_USER_CANCELLED = 20 # user cancelled action | |
390 EXIT_INTERNAL_ERROR = 111 # unexpected error | |
391 EXIT_FILE_NOT_EXE = ( | |
392 126 | |
393 ) # a file to be executed was found, but it was not an executable utility (cf. man 1 exit) | |
394 EXIT_CMD_NOT_FOUND = 127 # a utility to be executed was not found (cf. man 1 exit) | |
395 EXIT_CMD_ERROR = 127 # a utility to be executed returned an error exit code | |
396 EXIT_SIGNAL_INT = 128 # a command was interrupted by a signal (cf. man 1 exit) | |
397 | |
378 ## Misc ## | 398 ## Misc ## |
379 SAVEFILE_DATABASE = APP_NAME_FILE + ".db" | 399 SAVEFILE_DATABASE = APP_NAME_FILE + ".db" |
380 IQ_SET = '/iq[@type="set"]' | 400 IQ_SET = '/iq[@type="set"]' |
381 ENV_PREFIX = "SAT_" # Prefix used for environment variables | 401 ENV_PREFIX = "SAT_" # Prefix used for environment variables |
382 IGNORE = "ignore" | 402 IGNORE = "ignore" |