mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-22 08:23:50 +01:00
19 lines
361 B
Go
19 lines
361 B
Go
package daemon
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/zrepl/zrepl/internal/cli"
|
|
"github.com/zrepl/zrepl/internal/logger"
|
|
)
|
|
|
|
type Logger = logger.Logger
|
|
|
|
var DaemonCmd = &cli.Subcommand{
|
|
Use: "daemon",
|
|
Short: "run the zrepl daemon",
|
|
Run: func(ctx context.Context, subcommand *cli.Subcommand, args []string) error {
|
|
return Run(ctx, subcommand.Config())
|
|
},
|
|
}
|