File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package cmd
33import (
44 "embed"
55 "fmt"
6- "log"
76 "net/http"
87 "os/exec"
98 "regexp"
@@ -15,7 +14,7 @@ import (
1514//go:embed control
1615var uipath embed.FS
1716
18- func openuri (uri string ) {
17+ func openuri (uri string ) bool {
1918 var err error
2019
2120 switch runtime .GOOS {
@@ -29,9 +28,7 @@ func openuri(uri string) {
2928 err = fmt .Errorf ("unsupported platform, open manually: %s" , uri )
3029 }
3130
32- if err != nil {
33- log .Fatal (err )
34- }
31+ return err != nil
3532}
3633
3734var UICmd = & cobra.Command {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ func Init() {
2323 viper .SetDefault ("storage.sqlite.db_name" , "numary" )
2424 viper .SetDefault ("storage.postgres.conn_string" , "postgresql://localhost/postgres" )
2525 viper .SetDefault ("server.http.bind_address" , "localhost:3068" )
26- viper .SetDefault ("ledgers" , []string {"quickstart" })
26+ viper .SetDefault ("ledgers" , []interface {} {"quickstart" })
2727
2828 viper .SetConfigName ("numary" )
2929 viper .SetConfigType ("yaml" )
You can’t perform that action at this time.
0 commit comments