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

Source

@Arg { help="test|build followed by its targets" }
Str[] args := Str[,]

c

Source

@Opt { help="build: clean only"; aliases=["-clean"] }
Bool c

Field names are single letters so AbstractMain gives -c; the -clean alias matches --clean after the leading dash.

es

Source

@Opt { help="test: new ECMA JavaScript environment" }
Bool es

f

Source

@Opt { help="build: clean, compile, then test"; aliases=["-full"] }
Bool f

js

Source

@Opt { help="test: legacy JavaScript environment" }
Bool js

parseArgs

Source

virtual override Bool parseArgs(Str[] toks)

Reject unknown options up front; AbstractMain only warns and carries on, so a typo like -clean would silently be ignored.

q

Source

@Opt { help="only print failures and status bar"; aliases=["-quiet"] }
Bool q

run

Source

virtual override Int run()

t

Source

@Opt { help=...; aliases=["-target"] }
Str? t

usage

Source

virtual override Int usage(OutStream out := Env.cur().out())

workPods

Source

static Str[] workPods(File dir)

Return sorted names of all pods under <dir>/lib/fan/.