summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-04-28 00:36:15 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-04-28 00:36:15 -0400
commitc5c15dae981547308da6c4bb53f42310b429270e (patch)
treec3dd3e750b52bff50a71f1c012c62553ded14a57 /src/main.c
parentadd groups and id commands (diff)
downloadlazysphere-c5c15dae981547308da6c4bb53f42310b429270e.tar.gz
lazysphere-c5c15dae981547308da6c4bb53f42310b429270e.tar.bz2
lazysphere-c5c15dae981547308da6c4bb53f42310b429270e.zip
added ls
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 28961c9..63aa775 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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\n");
+ printf("\tdd, cat, yes, echo, printf, id, groups, ls\n");
return EXIT_SUCCESS;
}
argc--;
@@ -48,6 +48,8 @@ int main (ARGUMENTS) {
return groups();
} else if (streql(cmd, "id")) {
return user_id();
+ } else if (streql(cmd, "ls")) {
+ return ls(NEXT_ARGS);
} else {
error("error: invalid command %s", cmd);
}