2017-07-06 13:03:44 +02:00
|
|
|
// See cmd package.
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2018-10-13 15:07:50 +02:00
|
|
|
"github.com/zrepl/zrepl/cli"
|
2018-08-29 22:06:24 +02:00
|
|
|
"github.com/zrepl/zrepl/client"
|
2018-08-27 19:10:55 +02:00
|
|
|
"github.com/zrepl/zrepl/daemon"
|
2017-07-06 13:03:44 +02:00
|
|
|
)
|
|
|
|
|
2018-08-27 19:10:55 +02:00
|
|
|
func init() {
|
2018-10-13 15:07:50 +02:00
|
|
|
cli.AddSubcommand(daemon.DaemonCmd)
|
|
|
|
cli.AddSubcommand(client.StatusCmd)
|
|
|
|
cli.AddSubcommand(client.SignalCmd)
|
|
|
|
cli.AddSubcommand(client.StdinserverCmd)
|
|
|
|
cli.AddSubcommand(client.ConfigcheckCmd)
|
|
|
|
cli.AddSubcommand(client.VersionCmd)
|
|
|
|
cli.AddSubcommand(client.PprofCmd)
|
2018-08-27 19:10:55 +02:00
|
|
|
}
|
|
|
|
|
2017-07-06 13:03:44 +02:00
|
|
|
func main() {
|
2018-10-13 15:07:50 +02:00
|
|
|
cli.Run()
|
2017-07-06 13:03:44 +02:00
|
|
|
}
|