17756: Add lsf dispatcher.
[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/ws"
21 )
22
23 var (
24         handler = cmd.Multi(map[string]cmd.Handler{
25                 "version":   cmd.Version,
26                 "-version":  cmd.Version,
27                 "--version": cmd.Version,
28
29                 "boot":               boot.Command,
30                 "cloudtest":          cloudtest.Command,
31                 "config-check":       config.CheckCommand,
32                 "config-defaults":    config.DumpDefaultsCommand,
33                 "config-dump":        config.DumpCommand,
34                 "controller":         controller.Command,
35                 "crunch-run":         crunchrun.Command,
36                 "dispatch-cloud":     dispatchcloud.Command,
37                 "dispatch-lsf":       lsf.DispatchCommand,
38                 "install":            install.Command,
39                 "init":               install.InitCommand,
40                 "recover-collection": recovercollection.Command,
41                 "ws":                 ws.Command,
42         })
43 )
44
45 func main() {
46         os.Exit(handler.RunCommand(os.Args[0], os.Args[1:], os.Stdin, os.Stdout, os.Stderr))
47 }