diff options
author | Tyler Murphy <tylerm@tylerm.dev> | 2023-04-30 02:12:02 -0400 |
---|---|---|
committer | Tyler Murphy <tylerm@tylerm.dev> | 2023-04-30 02:12:02 -0400 |
commit | 49f7c2be366f0b918b68a4cc8e4335ebab0a15ba (patch) | |
tree | 16a9123cdab4863c283050690a6889803e92a92c /src/main.c | |
parent | added tail and head (diff) | |
download | lazysphere-49f7c2be366f0b918b68a4cc8e4335ebab0a15ba.tar.gz lazysphere-49f7c2be366f0b918b68a4cc8e4335ebab0a15ba.tar.bz2 lazysphere-49f7c2be366f0b918b68a4cc8e4335ebab0a15ba.zip |
fix ls and add start of ed
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,4 +1,4 @@ -#include "shared.h" +#include "util/shared.h" #include "command.h" #include <stdint.h> @@ -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, tail, head\n"); + printf("\tdd, cat, yes, echo, printf, id, groups, ls, tail, head, ed\n"); return EXIT_SUCCESS; } argc--; @@ -54,6 +54,8 @@ int main (ARGUMENTS) { return tail(NEXT_ARGS); } else if (streql(cmd, "head")) { return head(NEXT_ARGS); + } else if (streql(cmd, "ed")) { + return ed(NEXT_ARGS); } else { error("error: invalid command %s", cmd); } |