fix(init): removed unnecessary error message when waiting for child process; race with wait all
fix(exec): fallback to os.Args when no delimiter found fix(pidproxy): fallback to os.Args when no delimiter found fix(splitargs): return full selfArgs fix(experiment/starter): replaced bool no-wait with count test(docker/bookworm-newconfig): added test for background process + pid proxy
This commit is contained in:
@@ -71,11 +71,13 @@ func main() {
|
||||
|
||||
app.version.Cmd(rootCmd)
|
||||
|
||||
selfArgs, childArgs, err = cli.SplitArgs(os.Args)
|
||||
if selfArgs, childArgs, err = cli.SplitArgs(os.Args); err != nil {
|
||||
selfArgs = os.Args
|
||||
}
|
||||
app.childArgs = childArgs
|
||||
app.err = err
|
||||
|
||||
rootCmd.SetArgs(selfArgs)
|
||||
rootCmd.SetArgs(selfArgs[1:])
|
||||
if err := rootCmd.Execute(); err != nil {
|
||||
log.Println(err)
|
||||
os.Exit(1)
|
||||
|
||||
Reference in New Issue
Block a user