Allow kapow server to run without .pow file and non-interactive
Co-authored-by: pancho horrillo <pedrofelipe.horrillo@bbva.com>
This commit is contained in:
@@ -30,6 +30,7 @@ var ServerCmd = &cobra.Command{
|
|||||||
go server.StartServer(controlBind, dataBind, userBind)
|
go server.StartServer(controlBind, dataBind, userBind)
|
||||||
|
|
||||||
// start sub shell + ENV(KAPOW_CONTROL_URL)
|
// start sub shell + ENV(KAPOW_CONTROL_URL)
|
||||||
|
if len(args) > 0 {
|
||||||
powfile := args[0]
|
powfile := args[0]
|
||||||
_, err := os.Stat(powfile)
|
_, err := os.Stat(powfile)
|
||||||
if os.IsNotExist(err) {
|
if os.IsNotExist(err) {
|
||||||
@@ -47,6 +48,7 @@ var ServerCmd = &cobra.Command{
|
|||||||
}
|
}
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
log.Printf("Done running powfile: %q\n", powfile)
|
log.Printf("Done running powfile: %q\n", powfile)
|
||||||
|
}
|
||||||
|
|
||||||
select {}
|
select {}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user