2018-08-27 19:10:55 +02:00
|
|
|
package daemon
|
|
|
|
|
|
|
|
import (
|
2020-04-11 15:49:41 +02:00
|
|
|
"context"
|
|
|
|
|
2018-10-13 15:07:50 +02:00
|
|
|
"github.com/zrepl/zrepl/cli"
|
2018-08-27 19:10:55 +02:00
|
|
|
"github.com/zrepl/zrepl/logger"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Logger = logger.Logger
|
2018-10-13 15:07:50 +02:00
|
|
|
|
2019-03-22 19:41:12 +01:00
|
|
|
var DaemonCmd = &cli.Subcommand{
|
2018-10-13 15:07:50 +02:00
|
|
|
Use: "daemon",
|
|
|
|
Short: "run the zrepl daemon",
|
2020-04-11 15:49:41 +02:00
|
|
|
Run: func(ctx context.Context, subcommand *cli.Subcommand, args []string) error {
|
|
|
|
return Run(ctx, subcommand.Config())
|
2018-10-13 15:07:50 +02:00
|
|
|
},
|
|
|
|
}
|