comparison sat_frontends/jp/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 559a625a236b
children be6d91572633
comparison
equal deleted inserted replaced
3405:ecdb3728749e 3406:4c15271118a2
71 A_PROMPT_PATH = A.BOLD + A.FG_CYAN 71 A_PROMPT_PATH = A.BOLD + A.FG_CYAN
72 A_PROMPT_SUF = A.BOLD 72 A_PROMPT_SUF = A.BOLD
73 # Files 73 # Files
74 A_DIRECTORY = A.BOLD + A.FG_CYAN 74 A_DIRECTORY = A.BOLD + A.FG_CYAN
75 A_FILE = A.FG_WHITE 75 A_FILE = A.FG_WHITE
76
77 # exit codes
78 EXIT_OK = 0
79 EXIT_ERROR = 1 # generic error, when nothing else match
80 EXIT_BAD_ARG = 2 # arguments given by user are bad
81 EXIT_BRIDGE_ERROR = 3 # can't connect to bridge
82 EXIT_BRIDGE_ERRBACK = 4 # something went wrong when calling a bridge method
83 EXIT_NOT_FOUND = 16 # an item required by a command was not found
84 EXIT_DATA_ERROR = 17 # data needed for a command is invalid
85 EXIT_MISSING_FEATURE = 18 # a needed plugin or feature is not available
86 EXIT_USER_CANCELLED = 20 # user cancelled action
87 EXIT_INTERNAL_ERROR = 111 # unexpected error
88 EXIT_FILE_NOT_EXE = (
89 126
90 ) # a file to be executed was found, but it was not an executable utility (cf. man 1 exit)
91 EXIT_CMD_NOT_FOUND = 127 # a utility to be executed was not found (cf. man 1 exit)
92 EXIT_CMD_ERROR = 127 # a utility to be executed returned an error exit code
93 EXIT_SIGNAL_INT = 128 # a command was interrupted by a signal (cf. man 1 exit)