From b824c9188a7636b0f8b483ac1ade79885610cca1 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 24 Oct 2022 01:33:09 +0000 Subject: ntux_cmd_bridge(): initial implementation and integration. --- src/skin/ntux_skin_bridge.c | 24 ++++++++++++++++++++++++ src/skin/ntux_skin_default.c | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 src/skin/ntux_skin_bridge.c (limited to 'src/skin') diff --git a/src/skin/ntux_skin_bridge.c b/src/skin/ntux_skin_bridge.c new file mode 100644 index 0000000..d66eac6 --- /dev/null +++ b/src/skin/ntux_skin_bridge.c @@ -0,0 +1,24 @@ +#include "ntux_driver_impl.h" +#include "argv/argv.h" + +const struct argv_option ntux_bridge_options[] = { + {"version", 'v',TAG_VERSION,ARGV_OPTARG_NONE,0,0,0, + "show version information"}, + + {"help", 'h',TAG_HELP,ARGV_OPTARG_OPTIONAL,0,"short|long",0, + "show usage information [listing %s options only]"}, + + {"interp", 'i',TAG_INTERP,ARGV_OPTARG_REQUIRED,0,0,0, + "script interpreter to execute"}, + + {"script", 's',TAG_SCRIPT,ARGV_OPTARG_REQUIRED,0,0,0, + "script argument to be passed to interpreter"}, + + {"optarg", 's',TAG_OPTARG,ARGV_OPTARG_REQUIRED,0,0,0, + "optional argument to be passed to interpreter"}, + + {"logfile", 'o',TAG_LOGFILE,ARGV_OPTARG_REQUIRED,0,0,"", + "write output to %s"}, + + {0,0,0,0,0,0,0,0} +}; diff --git a/src/skin/ntux_skin_default.c b/src/skin/ntux_skin_default.c index b7fabc6..8daf019 100644 --- a/src/skin/ntux_skin_default.c +++ b/src/skin/ntux_skin_default.c @@ -9,7 +9,7 @@ const struct argv_option ntux_default_options[] = { "show usage information [listing %s options only]"}, {"cmd", 0,TAG_CMD,ARGV_OPTARG_REQUIRED,0, - "stat|spawn|strace|chmod|aceit|fspath",0, + "stat|spawn|strace|chmod|aceit|fspath|bridge",0, "invoke one of the following ntux commands: %s"}, {0,0,0,0,0,0,0,0} -- cgit v1.2.3