added flag and funcions to set default paths in the config file

This commit is contained in:
2021-05-09 04:27:32 +04:00
parent b36799f650
commit a1fd29ec45
3 changed files with 69 additions and 10 deletions

View File

@@ -15,6 +15,7 @@ var (
GPU bool
UpdateServerList bool
ServerList bool
SetDefaultConfig bool
)
var AppConfigFlags = []cli.Flag{
@@ -74,4 +75,10 @@ var AppConfigFlags = []cli.Flag{
EnvVars: []string{"SPECS"},
Destination: &Specs,
},
&cli.BoolFlag{
Name: "SetDefaultConfig",
Usage: "Sets a default configuration file",
EnvVars: []string{"SET_DEFAULT_CONFIG"},
Destination: &SetDefaultConfig,
},
}