You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 78bd24f
Browse filesBrowse the repository at this point in the historyBrowse files
added cmd line arg piping from shell script, backup, reset, help, class, method, debug - lots of working cmd line goodies for those that want to adventure into creating koans
// COMPILE("-c", new Compile(), "Compiles the application."), // requires tools jar - wait till needed to require
21
+
HELP("Help. Displays stuff to, er, help you.",
22
+
newHelp(), "-help", "help", "h", "?"),
23
+
RESET("Restore all the koans in the src/ folder to their original (or last backed up) state.",
24
+
newReset(), "-reset"),
25
+
BACKUP("Backup all the koans in the src/ for easy restoration later (useful for developing koans).",
26
+
newBackup(), "-backup"),
27
+
// nothing using this currently - but probably a few things that could - say, a debug presenter?
28
+
DEBUG("Enable debug state in the app.",
29
+
newDebug(), "-debug"),
21
30
TEST("Run tests. System returns number of failing testcases - not to exceed 255 to retain DOS compatibility for BAT files.",
22
31
newTest(), "-test"),
23
32
// important class MUST come before method - due to how Enum implements comparable and order
24
33
// dependent logic later @ see ArgumentTypeTest.testClassPrecedesMethod
25
34
CLASS_ARG("Switch is optional, app tries to find a class definition for any unrecognized string - which becomes a method argument if class is not found. If classcast succeeds - the class will become the only koansuite to run. Permits users/developers to focus on one suite at a time.",
26
35
newClassArg(), "-class"),
27
36
METHOD_ARG("Switch is optional, results from failing to find a class definition by an unrecognized string if switch is omitted.",
28
-
newMethodArg(), "-method"),
29
-
DEPLOY("Runs tests, if all pass - packs a jar for the koans folder, otherwise present stack trace from first failed test.",
30
-
newDeploy(), "-deploy"),
31
-
COMMIT("Runs tests, if all pass - pushes all changes in lib, koans, and tests to branch (sring value following switch). If tests fail, present stack trace from first failed test.",
32
-
newCommit(), "-commit"),
33
-
HELP("Help. Displays stuff to, er, help you.",
34
-
newHelp(), "-help", "help", "h", "?"),
35
-
RUN_KOANS("Defaul targent. No switch - this runs if no switch is defined, or if a valid class is found as an argument.",
37
+
newMethodArg(), "-method"),
38
+
RUN_KOANS("Default target. No switch - this runs if no switch is defined, or if a valid class is found as an argument.",
0 commit comments