diff options
author | Tyler Murphy <tylerm@tylerm.dev> | 2023-04-28 00:36:15 -0400 |
---|---|---|
committer | Tyler Murphy <tylerm@tylerm.dev> | 2023-04-28 00:36:15 -0400 |
commit | c5c15dae981547308da6c4bb53f42310b429270e (patch) | |
tree | c3dd3e750b52bff50a71f1c012c62553ded14a57 /src/main.c | |
parent | add groups and id commands (diff) | |
download | lazysphere-c5c15dae981547308da6c4bb53f42310b429270e.tar.gz lazysphere-c5c15dae981547308da6c4bb53f42310b429270e.tar.bz2 lazysphere-c5c15dae981547308da6c4bb53f42310b429270e.zip |
added ls
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\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); } |