diff options
author | Tyler Murphy <tylerm@tylerm.dev> | 2023-04-28 15:13:10 -0400 |
---|---|---|
committer | Tyler Murphy <tylerm@tylerm.dev> | 2023-04-28 15:13:10 -0400 |
commit | 7a1eef12299f4b030bfb77d9bbb133d0ba2ee674 (patch) | |
tree | 61d7008b25e37799318db4030b86f85fc0059275 /src/main.c | |
parent | fix missing newline on single row output (diff) | |
download | lazysphere-7a1eef12299f4b030bfb77d9bbb133d0ba2ee674.tar.gz lazysphere-7a1eef12299f4b030bfb77d9bbb133d0ba2ee674.tar.bz2 lazysphere-7a1eef12299f4b030bfb77d9bbb133d0ba2ee674.zip |
add tail
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -20,7 +20,7 @@ int main (ARGUMENTS) { if (argc < 2) { printf("usage: lazysphere [function [arguments]...]\n\n"); printf("currently defined functions:\n"); - printf("\tdd, cat, yes, echo, printf, id, groups, ls\n"); + printf("\tdd, cat, yes, echo, printf, id, groups, ls, tail\n"); return EXIT_SUCCESS; } argc--; @@ -50,6 +50,8 @@ int main (ARGUMENTS) { return user_id(); } else if (streql(cmd, "ls")) { return ls(NEXT_ARGS); + } else if (streql(cmd, "tail")) { + return tail(NEXT_ARGS); } else { error("error: invalid command %s", cmd); } |