summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-05-12 18:35:41 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-05-12 18:35:41 -0400
commitc68d7136feaa17f2ddfd4d56a325aeae8f8eec96 (patch)
tree32d3a2ac655b1a0a16ef6549c117b0fbf4106797 /src/main.c
parentchown, chmod (diff)
downloadlazysphere-c68d7136feaa17f2ddfd4d56a325aeae8f8eec96.tar.gz
lazysphere-c68d7136feaa17f2ddfd4d56a325aeae8f8eec96.tar.bz2
lazysphere-c68d7136feaa17f2ddfd4d56a325aeae8f8eec96.zip
sync
Diffstat (limited to '')
-rw-r--r--src/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 2718041..1897f5c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -23,7 +23,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, ed, tee, true, false, tee, whoami, wc, xargs, tac, rm, cp, mkdir, mv, grep, chown, chmod\n");
+ printf("\tdd, cat, yes, echo, printf, id, groups, ls, tail, head, ed, tee, true, false, tee, whoami, wc, xargs, tac, rm, cp, mkdir, mv, grep, chown, chmod, sync\n");
return EXIT_SUCCESS;
}
argc--;
@@ -62,7 +62,7 @@ int main (ARGUMENTS) {
} else if (streql(cmd, "ed")) {
return ed(NEXT_ARGS);
} else if (streql(cmd, "tee")) {
- return tee(NEXT_ARGS);
+ return tee_cmd(NEXT_ARGS);
} else if (streql(cmd, "true")) {
return EXIT_SUCCESS;
} else if (streql(cmd, "false")) {
@@ -89,6 +89,8 @@ int main (ARGUMENTS) {
return chown_cmd(NEXT_ARGS);
} else if (streql(cmd, "chmod")) {
return chmod_cmd(NEXT_ARGS);
+ } else if (streql(cmd, "sync")) {
+ return sync_cmd(NEXT_ARGS);
} else {
fprintf(stderr, "lazysphere: invalid command %s\n", cmd);
return EXIT_FAILURE;