16565: stop pushing the 'latest' tag for our arvados/jobs docker image
[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/recovercollection"
19         "git.arvados.org/arvados.git/services/ws"
20 )
21
22 var (
23         handler = cmd.Multi(map[string]cmd.Handler{
24                 "version":   cmd.Version,
25                 "-version":  cmd.Version,
26                 "--version": cmd.Version,
27
28                 "boot":               boot.Command,
29                 "cloudtest":          cloudtest.Command,
30                 "config-check":       config.CheckCommand,
31                 "config-defaults":    config.DumpDefaultsCommand,
32                 "config-dump":        config.DumpCommand,
33                 "controller":         controller.Command,
34                 "crunch-run":         crunchrun.Command,
35                 "dispatch-cloud":     dispatchcloud.Command,
36                 "install":            install.Command,
37                 "recover-collection": recovercollection.Command,
38                 "ws":                 ws.Command,
39         })
40 )
41
42 func main() {
43         os.Exit(handler.RunCommand(os.Args[0], os.Args[1:], os.Stdin, os.Stdout, os.Stderr))
44 }