mirror of
https://github.com/c9s/bbgo.git
synced 2024-09-20 08:11:08 +00:00
change default config path to just bbgo.yaml
This commit is contained in:
parent
6245b83524
commit
4e31c7f68a
|
@ -18,6 +18,8 @@ import TableRow from '@material-ui/core/TableRow';
|
|||
import {makeStyles} from '@material-ui/core/styles';
|
||||
|
||||
import {saveConfig} from "../api/bbgo";
|
||||
import Box from "@material-ui/core/Box";
|
||||
import Alert from "@material-ui/lab/Alert";
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
strategyCard: {
|
||||
|
@ -88,6 +90,19 @@ export default function SaveConfigAndRestart({onBack, onRestarted}) {
|
|||
Save and Restart
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
{
|
||||
response ? response.error ? (
|
||||
<Box m={2}>
|
||||
<Alert severity="error">{response.error}</Alert>
|
||||
</Box>
|
||||
) : response.success ? (
|
||||
<Box m={2}>
|
||||
<Alert severity="success">Config Saved</Alert>
|
||||
</Box>
|
||||
) : null : null
|
||||
}
|
||||
|
||||
</React.Fragment>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ var RootCmd = &cobra.Command{
|
|||
|
||||
func init() {
|
||||
RootCmd.PersistentFlags().Bool("debug", false, "debug flag")
|
||||
RootCmd.PersistentFlags().String("config", "config/bbgo.yaml", "config file")
|
||||
RootCmd.PersistentFlags().String("config", "bbgo.yaml", "config file")
|
||||
|
||||
// A flag can be 'persistent' meaning that this flag will be available to
|
||||
// the command it's assigned to as well as every command under that command.
|
||||
|
|
Loading…
Reference in New Issue
Block a user