aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 201e644..73e3028 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-FileCopyrightText: 2026 Nicholas Rodrigues Lordello <[email protected]>
+
#include <assert.h>
#include <errno.h>
#include <stdarg.h>
@@ -94,6 +97,12 @@ int dummy_run(struct dbx_options *options) {
printf("- name: %s\n", options->name);
printf("- image: %s\n", options->image);
printf("- ports: %d:%d\n", options->ports.container, options->ports.host);
+
+ char *const ls[] = {"ls", "-la", ".", NULL};
+ int exit_code = dbx_proc_run(ls);
+ printf("- ls: %d\n", exit_code);
+ dbx_proc_exec(ls);
+
return EXIT_SUCCESS;
}