MINOR: cli: parse prompt command in the CLI proxy
Handle the prompt command. Works the same way as the CLI.
diff --git a/src/cli.c b/src/cli.c
index e7682f5..3171c0a 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -1657,6 +1657,9 @@
struct buffer *msg = get_trash_chunk();
struct channel *oc = si_oc(&s->si[0]);
+ if (!s->pcli_prompt)
+ return;
+
if (s->pcli_next_pid == 0)
chunk_appendf(msg, "master> ");
else
@@ -1781,6 +1784,9 @@
else
*next_pid = target_pid;
return 1;
+ } else if (!strcmp("prompt", args[0])) {
+ s->pcli_prompt ^= 1;
+ return argl; /* return the number of elements in the array */
}
return 0;