classjig::Main
sys::Obj util::AbstractMain jig::Main
Jig command line entry point:
jig test <targets>* [-q] [-es|-js] jig build [<pod> | <file.fan>]* [-c] [-f] [-t <target>] [-q]
- args
@Arg { help="test|build followed by its targets" }
Str[] args := Str[,]- c
@Opt { help="build: clean only"; aliases=["-clean"] }
Bool cField names are single letters so AbstractMain gives
-c; the-cleanalias matches--cleanafter the leading dash.- es
@Opt { help="test: new ECMA JavaScript environment" }
Bool es- f
@Opt { help="build: clean, compile, then test"; aliases=["-full"] }
Bool f- js
- parseArgs
virtual override Bool parseArgs(Str[] toks)Reject unknown options up front; AbstractMain only warns and carries on, so a typo like
-cleanwould silently be ignored.- q
@Opt { help="only print failures and status bar"; aliases=["-quiet"] }
Bool q- run
virtual override Int run()- t
- usage
virtual override Int usage(OutStream out := Env.cur().out())- workPods
static Str[] workPods(File dir)Return sorted names of all pods under
<dir>/lib/fan/.