mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
cmd: write config json file into the backtest report dir
This commit is contained in:
parent
8ed39f7565
commit
ed975de2cd
|
@ -563,7 +563,12 @@ var BacktestCmd = &cobra.Command{
|
|||
fmt.Println(summaryReportFile)
|
||||
|
||||
if err := util.WriteJsonFile(summaryReportFile, summaryReport); err != nil {
|
||||
return err
|
||||
return errors.Wrapf(err, "can not write summary report json file: %s", summaryReportFile)
|
||||
}
|
||||
|
||||
configJsonFile := filepath.Join(reportDir, "config.json")
|
||||
if err := util.WriteJsonFile(configJsonFile, userConfig); err != nil {
|
||||
return errors.Wrapf(err, "can not write config json file: %s", configJsonFile)
|
||||
}
|
||||
|
||||
// append report index
|
||||
|
|
Loading…
Reference in New Issue
Block a user