forked from taskcluster/taskcluster-worker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
65 lines (60 loc) · 3.28 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Package main hosts the main function for taskcluter-worker.
//
// The code is structured in 4 kinds of extension registries. The
// commands, config, engines and plugins packages each define interfaces and
// registries where implementations of these interfaces can be registered.
//
// To add a new command to taskcluster-worker you must create new sub-package of
// commands/ which implements and registers commands.CommandProvider with the
// commands.Register(name, provider) method. The same pattern is followed for
// implementation of config transformers, engines, and plugins.
//
// All the sub-packages are then imported here, which ensure that they'll all
// be included in the respective extension registries. Exceptions to this
// pattern is the runtime and worker packages. The runtime package and its
// sub-packages implements generic abstractions and utilities to be used by all
// other packages. The worker package implements task execution flow to be used
// by commands.
package main
import (
"os"
"github.com/taskcluster/taskcluster-worker/commands"
// Import all sub-packages from commands/, config/, engines/ and plugins/
// as they will register themselves using extension registries.
_ "github.com/taskcluster/taskcluster-worker/commands/daemon"
_ "github.com/taskcluster/taskcluster-worker/commands/help"
_ "github.com/taskcluster/taskcluster-worker/commands/qemu-build"
_ "github.com/taskcluster/taskcluster-worker/commands/qemu-guest-tools"
_ "github.com/taskcluster/taskcluster-worker/commands/qemu-run"
_ "github.com/taskcluster/taskcluster-worker/commands/schema"
_ "github.com/taskcluster/taskcluster-worker/commands/shell"
_ "github.com/taskcluster/taskcluster-worker/commands/shell-server"
_ "github.com/taskcluster/taskcluster-worker/commands/version"
_ "github.com/taskcluster/taskcluster-worker/commands/work"
_ "github.com/taskcluster/taskcluster-worker/config/abs"
_ "github.com/taskcluster/taskcluster-worker/config/configtest"
_ "github.com/taskcluster/taskcluster-worker/config/env"
_ "github.com/taskcluster/taskcluster-worker/config/hostcredentials"
_ "github.com/taskcluster/taskcluster-worker/config/packet"
_ "github.com/taskcluster/taskcluster-worker/config/secrets"
_ "github.com/taskcluster/taskcluster-worker/engines/enginetest"
_ "github.com/taskcluster/taskcluster-worker/engines/mock"
_ "github.com/taskcluster/taskcluster-worker/engines/native"
_ "github.com/taskcluster/taskcluster-worker/engines/qemu"
_ "github.com/taskcluster/taskcluster-worker/engines/script"
_ "github.com/taskcluster/taskcluster-worker/plugins/artifacts"
_ "github.com/taskcluster/taskcluster-worker/plugins/cache"
_ "github.com/taskcluster/taskcluster-worker/plugins/env"
_ "github.com/taskcluster/taskcluster-worker/plugins/interactive"
_ "github.com/taskcluster/taskcluster-worker/plugins/livelog"
_ "github.com/taskcluster/taskcluster-worker/plugins/logprefix"
_ "github.com/taskcluster/taskcluster-worker/plugins/maxruntime"
_ "github.com/taskcluster/taskcluster-worker/plugins/plugintest"
_ "github.com/taskcluster/taskcluster-worker/plugins/reboot"
_ "github.com/taskcluster/taskcluster-worker/plugins/success"
_ "github.com/taskcluster/taskcluster-worker/plugins/tcproxy"
_ "github.com/taskcluster/taskcluster-worker/plugins/watchdog"
)
func main() {
os.Exit(commands.Run(nil))
}