fix: big-branch cleanups

This commit is contained in:
Andrew Jackson (Ajax) 2023-12-04 10:18:07 -06:00
parent 887f0adf89
commit c48860849b
3 changed files with 6 additions and 29 deletions

23
.vscode/launch.json vendored
View File

@ -1,23 +0,0 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch Package",
"type": "go",
"request": "launch",
"mode": "exec",
"program": "lotus-provider",
"args": ["--db-host=localhost","run"],
"env": {
"LOTUS_PATH":"~/.lotus-local-net",
"LOTUS_MINER_PATH":"~/.lotus-miner-local-net",
"LOTUS_SKIP_GENESIS_CHECK":"_yes_",
"CGO_CFLAGS_ALLOW":"-D__BLST_PORTABLE__",
"CGO_CFLAGS":"-D__BLST_PORTABLE__",
}
}
]
}

View File

@ -65,7 +65,7 @@ func getDefaultConfig(comment bool) (string, error) {
var configSetCmd = &cli.Command{ var configSetCmd = &cli.Command{
Name: "set", Name: "set",
Aliases: []string{"add"}, Aliases: []string{"add", "update", "create"},
Usage: "Set a config layer or the base by providing a filename or stdin.", Usage: "Set a config layer or the base by providing a filename or stdin.",
ArgsUsage: "a layer's file name", ArgsUsage: "a layer's file name",
Flags: []cli.Flag{ Flags: []cli.Flag{

View File

@ -106,28 +106,28 @@ func main() {
}, },
&cli.StringFlag{ &cli.StringFlag{
Name: "db-name", Name: "db-name",
EnvVars: []string{"LOTUS_DB_NAME"}, EnvVars: []string{"LOTUS_DB_NAME", "LOTUS_HARMONYDB_HOSTS"},
Value: "yugabyte", Value: "yugabyte",
}, },
&cli.StringFlag{ &cli.StringFlag{
Name: "db-user", Name: "db-user",
EnvVars: []string{"LOTUS_DB_USER"}, EnvVars: []string{"LOTUS_DB_USER", "LOTUS_HARMONYDB_USERNAME"},
Value: "yugabyte", Value: "yugabyte",
}, },
&cli.StringFlag{ &cli.StringFlag{
Name: "db-password", Name: "db-password",
EnvVars: []string{"LOTUS_DB_PASSWORD"}, EnvVars: []string{"LOTUS_DB_PASSWORD", "LOTUS_HARMONYDB_PASSWORD"},
Value: "yugabyte", Value: "yugabyte",
}, },
&cli.StringFlag{ &cli.StringFlag{
Name: "db-port", Name: "db-port",
EnvVars: []string{"LOTUS_DB_PORT"}, EnvVars: []string{"LOTUS_DB_PORT", "LOTUS_HARMONYDB_PORT"},
Hidden: true, Hidden: true,
Value: "5433", Value: "5433",
}, },
&cli.StringFlag{ &cli.StringFlag{
Name: "layers", Name: "layers",
EnvVars: []string{"LOTUS_LAYERS"}, EnvVars: []string{"LOTUS_LAYERS", "LOTUS_CONFIG_LAYERS"},
Value: "base", Value: "base",
}, },
&cli.StringFlag{ &cli.StringFlag{