mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-25 18:04:58 +01:00
Rename sink -> stdinserver subcommand.
This commit is contained in:
parent
f36ef41c39
commit
7ad2ed5956
12
cmd/main.go
12
cmd/main.go
@ -61,20 +61,20 @@ func main() {
|
|||||||
}
|
}
|
||||||
app.Commands = []cli.Command{
|
app.Commands = []cli.Command{
|
||||||
{
|
{
|
||||||
Name: "sink",
|
Name: "stdinserver",
|
||||||
Aliases: []string{"s"},
|
Aliases: []string{"s"},
|
||||||
Usage: "start in sink mode",
|
Usage: "start in stdin server mode (from authorized keys)",
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
cli.StringFlag{Name: "identity"},
|
cli.StringFlag{Name: "identity"},
|
||||||
cli.StringFlag{Name: "logfile"},
|
cli.StringFlag{Name: "logfile"},
|
||||||
},
|
},
|
||||||
Action: doSink,
|
Action: cmdStdinServer,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "run",
|
Name: "run",
|
||||||
Aliases: []string{"r"},
|
Aliases: []string{"r"},
|
||||||
Usage: "do replication",
|
Usage: "do replication",
|
||||||
Action: doRun,
|
Action: cmdRun,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ func main() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func doSink(c *cli.Context) (err error) {
|
func cmdStdinServer(c *cli.Context) (err error) {
|
||||||
|
|
||||||
if !c.IsSet("identity") {
|
if !c.IsSet("identity") {
|
||||||
return cli.NewExitError("identity flag not set", 2)
|
return cli.NewExitError("identity flag not set", 2)
|
||||||
@ -137,7 +137,7 @@ func doSink(c *cli.Context) (err error) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func doRun(c *cli.Context) error {
|
func cmdRun(c *cli.Context) error {
|
||||||
|
|
||||||
// Do every pull, do every push
|
// Do every pull, do every push
|
||||||
// Scheduling
|
// Scheduling
|
||||||
|
Loading…
Reference in New Issue
Block a user