Merge branch '16375-arvados-multinode-testing'
[arvados.git] / cmd / arvados-server / cmd.go
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 package main
6
7 import (
8         "os"
9
10         "git.arvados.org/arvados.git/lib/boot"
11         "git.arvados.org/arvados.git/lib/cloud/cloudtest"
12         "git.arvados.org/arvados.git/lib/cmd"
13         "git.arvados.org/arvados.git/lib/config"
14         "git.arvados.org/arvados.git/lib/controller"
15         "git.arvados.org/arvados.git/lib/crunchrun"
16         "git.arvados.org/arvados.git/lib/dispatchcloud"
17         "git.arvados.org/arvados.git/lib/install"
18         "git.arvados.org/arvados.git/lib/lsf"
19         "git.arvados.org/arvados.git/lib/recovercollection"
20         "git.arvados.org/arvados.git/services/keepproxy"
21         "git.arvados.org/arvados.git/services/keepstore"
22         "git.arvados.org/arvados.git/services/ws"
23 )
24
25 var (
26         handler = cmd.Multi(map[string]cmd.Handler{
27                 "version":   cmd.Version,
28                 "-version":  cmd.Version,
29                 "--version": cmd.Version,
30
31                 "boot":               boot.Command,
32                 "cloudtest":          cloudtest.Command,
33                 "config-check":       config.CheckCommand,
34                 "config-defaults":    config.DumpDefaultsCommand,
35                 "config-dump":        config.DumpCommand,
36                 "controller":         controller.Command,
37                 "crunch-run":         crunchrun.Command,
38                 "dispatch-cloud":     dispatchcloud.Command,
39                 "dispatch-lsf":       lsf.DispatchCommand,
40                 "install":            install.Command,
41                 "init":               install.InitCommand,
42                 "keepproxy":          keepproxy.Command,
43                 "keepstore":          keepstore.Command,
44                 "recover-collection": recovercollection.Command,
45                 "ws":                 ws.Command,
46         })
47 )
48
49 func main() {
50         os.Exit(handler.RunCommand(os.Args[0], os.Args[1:], os.Stdin, os.Stdout, os.Stderr))
51 }