aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/securecoreutils.c
diff options
context:
space:
mode:
authorDavid M. Syzdek <syzdek@bindlebinaries.com>2017-06-14 20:26:23 -0800
committerDavid M. Syzdek <syzdek@bindlebinaries.com>2017-06-14 20:26:23 -0800
commit28de2ac47741ad7910725879b5db3f7c472a2cf6 (patch)
tree141c25b4598768258d248c607baf047d6dbcdb78 /src/securecoreutils.c
parented7fd0e30cb1288e604707b6aa5a3d4791a21a14 (diff)
downloadsecurecoreutils-28de2ac47741ad7910725879b5db3f7c472a2cf6.tar.gz
securecoreutils-28de2ac47741ad7910725879b5db3f7c472a2cf6.tar.bz2
securecoreutils-28de2ac47741ad7910725879b5db3f7c472a2cf6.tar.xz
securecoreutils-28de2ac47741ad7910725879b5db3f7c472a2cf6.zip
Adding 'tail' widget.
Diffstat (limited to 'src/securecoreutils.c')
-rw-r--r--src/securecoreutils.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/securecoreutils.c b/src/securecoreutils.c
index ef2e88b..2369f16 100644
--- a/src/securecoreutils.c
+++ b/src/securecoreutils.c
@@ -54,6 +54,7 @@
54 54
55#include "widget-cat.h" 55#include "widget-cat.h"
56#include "widget-pathcheck.h" 56#include "widget-pathcheck.h"
57#include "widget-tail.h"
57 58
58 59
59////////////////// 60//////////////////
@@ -93,6 +94,12 @@ const scu_widget scu_widget_map[] =
93 NULL, // widget alias 94 NULL, // widget alias
94 scu_widget_pathcheck, // widget function 95 scu_widget_pathcheck, // widget function
95 }, 96 },
97 {
98 "tail", // widget name
99 "Writes contents of file to standard out.", // widget description
100 "sectail", // widget alias
101 scu_widget_tail, // widget function
102 },
96 { NULL, NULL, NULL, NULL } 103 { NULL, NULL, NULL, NULL }
97}; 104};
98 105
@@ -280,6 +287,7 @@ void scu_usage(void)
280 printf(" widget [OPTIONS]\n"); 287 printf(" widget [OPTIONS]\n");
281 printf("\n"); 288 printf("\n");
282 scu_usage_options(); 289 scu_usage_options();
290 printf("\n");
283 scu_usage_widgets(); 291 scu_usage_widgets();
284 return; 292 return;
285} 293}
@@ -292,7 +300,6 @@ void scu_usage_options(void)
292 printf(" -q, --quiet, --silent do not print messages\n"); 300 printf(" -q, --quiet, --silent do not print messages\n");
293 printf(" -V, --version print version number and exit\n"); 301 printf(" -V, --version print version number and exit\n");
294 printf(" -v, --verbose print verbose messages\n"); 302 printf(" -v, --verbose print verbose messages\n");
295 printf("\n");
296 return; 303 return;
297} 304}
298 305