2018-08-27 19:10:55 +02:00
|
|
|
package daemon
|
|
|
|
|
|
|
|
import (
|
2020-04-11 15:49:41 +02:00
|
|
|
"context"
|
|
|
|
|
2024-10-18 19:21:17 +02:00
|
|
|
"github.com/zrepl/zrepl/internal/cli"
|
|
|
|
"github.com/zrepl/zrepl/internal/logger"
|
2018-08-27 19:10:55 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
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
|
|
|
},
|
|
|
|
}
|