From 66d3fd9403a8a0a89c77cacd5d054072ee55e2f9 Mon Sep 17 00:00:00 2001 From: onefang Date: Fri, 27 Aug 2021 08:31:53 +1000 Subject: Add stub build, test, and update sledjchisl commands. --- src/sledjchisl/sledjchisl.c | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index ab8776c..9e2b6f2 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -58,6 +58,12 @@ config SLEDJCHISL stop "Welcome sim" Will stop a sim, or everything. -a when stopping everything will close down all tmux windows and panes. + build + Will rebuild everything. + test + Will run the OpenSim tests. + update + Will update opensim-SC from the git repo. */ @@ -152,6 +158,9 @@ typedef enum GITAR = 2, RESTART = 3, STATUS = 4, + BUILD = 5, + TEST = 6, + UPDATE = 7, STOP = 9 } modes; @@ -164,9 +173,9 @@ char *modeStrings[] = "gitAR", "restart", "status", - "Huh?", - "WTF?", - "mumblefuck", + "build", + "test", + "update", "dontDoThis" "stop" }; @@ -8467,6 +8476,12 @@ Build the OpenSim. currentMode = START; else if (strcmp(toys.optargs[0], "status") == 0) currentMode = STATUS; + else if (strcmp(toys.optargs[0], "build") == 0) + currentMode = BUILD; + else if (strcmp(toys.optargs[0], "test") == 0) + currentMode = TEST; + else if (strcmp(toys.optargs[0], "update") == 0) + currentMode = UPDATE; else if (strcmp(toys.optargs[0], "stop") == 0) currentMode = STOP; if (2 == toys.optc) -- cgit v1.1