diff options
author | midipix <writeonce@midipix.org> | 2022-10-24 01:33:09 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2022-10-30 16:24:17 +0000 |
commit | b824c9188a7636b0f8b483ac1ade79885610cca1 (patch) | |
tree | 85f91fbac5cfad0bd7b742ee8a2b727bdfe9d7ac /src/skin | |
parent | 6dc70d02aa1767532f0339e7e335d544edced1c8 (diff) | |
download | ntux-b824c9188a7636b0f8b483ac1ade79885610cca1.tar.bz2 ntux-b824c9188a7636b0f8b483ac1ade79885610cca1.tar.xz |
ntux_cmd_bridge(): initial implementation and integration.
Diffstat (limited to 'src/skin')
-rw-r--r-- | src/skin/ntux_skin_bridge.c | 24 | ||||
-rw-r--r-- | src/skin/ntux_skin_default.c | 2 |
2 files changed, 25 insertions, 1 deletions
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,"<FILE>", + "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} |