From b5245776d2e7f6cca28580be62eb1a2b710dbfec Mon Sep 17 00:00:00 2001 From: Marco Casaroli Date: Thu, 19 Feb 2026 18:10:38 +0100 Subject: [PATCH] feat(shell): wait shortcut command Signed-off-by: Marco Casaroli --- docs/OcreCli.md | 1 + src/shell/shell.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/OcreCli.md b/docs/OcreCli.md index 01bee9c8..79361aa5 100644 --- a/docs/OcreCli.md +++ b/docs/OcreCli.md @@ -161,6 +161,7 @@ The following shortcut commands are available for convenience: - `create` → `container create` - Create a container - `run` → `container run` - Create and start a container - `start` → `container start` - Start a container +- `wait` → `container wait` - Wait for a container to exit - `kill` → `container kill` - Kill a container - `rm` → `container rm` - Remove a container diff --git a/src/shell/shell.c b/src/shell/shell.c index 94f05e27..793d7852 100644 --- a/src/shell/shell.c +++ b/src/shell/shell.c @@ -58,6 +58,7 @@ static int print_usage(struct ocre_context *ctx, const char *argv0, int argc, ch fprintf(stderr, " run container run\n"); fprintf(stderr, " start container start\n"); // fprintf(stderr, " stop container stop\n"); + fprintf(stderr, " wait container wait\n"); fprintf(stderr, " kill container kill\n"); // fprintf(stderr, " pause container pause\n"); // fprintf(stderr, " unpause container unpause\n"); @@ -80,6 +81,7 @@ static const struct ocre_command commands[] = { {"start", cmd_container_start}, {"stop", cmd_container_stop}, {"kill", cmd_container_kill}, + {"wait", cmd_container_wait}, {"pause", cmd_container_pause}, {"unpause", cmd_container_unpause}, {"rm", cmd_container_rm},