Skip to content

Commit 93af0f4

Browse files
committed
feat(shell): wait shortcut command
Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
1 parent ae444b6 commit 93af0f4

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

docs/OcreCli.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ The following shortcut commands are available for convenience:
161161
- `create``container create` - Create a container
162162
- `run``container run` - Create and start a container
163163
- `start``container start` - Start a container
164+
- `wait``container wait` - Wait for a container to exit
164165
- `kill``container kill` - Kill a container
165166
- `rm``container rm` - Remove a container
166167

src/shell/shell.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ static int print_usage(struct ocre_context *ctx, const char *argv0, int argc, ch
5858
fprintf(stderr, " run container run\n");
5959
fprintf(stderr, " start container start\n");
6060
// fprintf(stderr, " stop container stop\n");
61+
fprintf(stderr, " wait container wait\n");
6162
fprintf(stderr, " kill container kill\n");
6263
// fprintf(stderr, " pause container pause\n");
6364
// fprintf(stderr, " unpause container unpause\n");
@@ -80,6 +81,7 @@ static const struct ocre_command commands[] = {
8081
{"start", cmd_container_start},
8182
{"stop", cmd_container_stop},
8283
{"kill", cmd_container_kill},
84+
{"wait", cmd_container_wait},
8385
{"pause", cmd_container_pause},
8486
{"unpause", cmd_container_unpause},
8587
{"rm", cmd_container_rm},

0 commit comments

Comments
 (0)