Commit Graph

5 Commits

Author SHA1 Message Date
Qi Xiao
6e126f2dd2 program: Put daemon, shell and web into their own Program types. 2017-12-06 23:52:12 +00:00
Qi Xiao
6422519bdb Handle -cpuprofile and -log{,prefix} for all subprograms. 2017-12-06 23:31:30 +00:00
Qi Xiao
2591c19b2d program: Introduce a Program interface.
Eventually, all subprograms should implement this interface. The
FindProgram function decides which subprogram to call without causing
any side effects, and can be easily tested.

Right now, only some trivial "subprograms" are split out.
2017-12-06 23:02:15 +00:00
Qi Xiao
e2e342d1de Add builder info, and a -buildinfo flag. 2017-12-04 21:29:53 +01:00
Qi Xiao
79dc756ee5 Moving packages around.
Logics of the main package is now in program/. Subprograms are subpackages of
program/. For instance, daemon/ is now program/daemon.

The daemon/service package is now simply daemon/.

The version string has been moved into its own package, build/.
2017-12-04 21:08:45 +01:00