comparison frontends/src/jp/constants.py @ 2309:c7a72b75232b

jp (shell): shell command (REPL mode), first draft: This command launch jp in REPL mode, allowing do normal jp commands with some facilities. Command can be selected with "cmd" (e.g. "cmd blog"). An argument can be fixed with "use" (e.g. "use output fancy"). Command is launched with "do", or directly with its name if it doesn't conflict with a shell command. Arguments completion is still TODO (only shell commands are completed so far).
author Goffi <goffi@goffi.org>
date Thu, 06 Jul 2017 20:28:25 +0200
parents 31f586d6ab16
children 0fed4a1c033a
comparison
equal deleted inserted replaced
2308:0b21d87c91cf 2309:c7a72b75232b
39 # ANSI 39 # ANSI
40 A_HEADER = A.BOLD + A.FG_YELLOW 40 A_HEADER = A.BOLD + A.FG_YELLOW
41 A_SUBHEADER = A.BOLD + A.FG_RED 41 A_SUBHEADER = A.BOLD + A.FG_RED
42 A_SUCCESS = A.BOLD + A.FG_GREEN 42 A_SUCCESS = A.BOLD + A.FG_GREEN
43 A_FAILURE = A.BOLD + A.FG_RED 43 A_FAILURE = A.BOLD + A.FG_RED
44 # A_PROMPT_* is for shell
45 A_PROMPT_PATH = A_HEADER
46 A_PROMPT_SUF = A.BOLD
44 47
45 # exit codes 48 # exit codes
46 EXIT_OK = 0 49 EXIT_OK = 0
47 EXIT_ERROR = 1 # generic error, when nothing else match 50 EXIT_ERROR = 1 # generic error, when nothing else match
48 EXIT_BAD_ARG = 2 # arguments given by user are bad 51 EXIT_BAD_ARG = 2 # arguments given by user are bad