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:
parent
73ed5094b9
commit
6672bfc57b
1 changed files with 269 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue