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).
This commit is contained in:
Goffi 2017-07-06 20:28:25 +02:00
commit 6672bfc57b

View file

@ -41,6 +41,9 @@ class Const(constants.Const):
A_SUBHEADER = A.BOLD + A.FG_RED
A_SUCCESS = A.BOLD + A.FG_GREEN
A_FAILURE = A.BOLD + A.FG_RED
# A_PROMPT_* is for shell
A_PROMPT_PATH = A_HEADER
A_PROMPT_SUF = A.BOLD
# exit codes
EXIT_OK = 0