Skip to content

Commit

Permalink
update go.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
flarco committed Sep 17, 2024
1 parent a942c84 commit f1e51c2
Show file tree
Hide file tree
Showing 5 changed files with 530 additions and 555 deletions.
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ cp -r frontend/build server/app

# Build Backend Binary
rm -f dbnet
go build -o dbnet
go mod tidy
go build --tags fts5 -o dbnet
9 changes: 5 additions & 4 deletions dbnet_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"bufio"
"fmt"
"os"
"runtime"
"strings"
Expand Down Expand Up @@ -233,17 +234,17 @@ func exec(c *g.CliSC) (ok bool, err error) {
func conns(c *g.CliSC) (ok bool, err error) {
ok = true

ef := env.LoadDbNetEnvFile()
ec := connection.EnvConns{EnvFile: &ef}
entries := connection.GetLocalConns()

switch c.UsedSC() {

case "list":
println(ec.List())
fields, rows := entries.List()
fmt.Println(g.PrettyTable(fields, rows))

case "test":
name := cast.ToString(c.Vals["name"])
ok, err = ec.Test(name)
ok, err = entries.Test(name)
if err != nil {
return ok, g.Error(err, "could not test %s", name)
} else if ok {
Expand Down
2 changes: 1 addition & 1 deletion env/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package env
import (
"os"

env "github.com/slingdata-io/sling-cli/core/dbio/env"
env "github.com/slingdata-io/sling-cli/core/env"
)

var (
Expand Down
Loading

0 comments on commit f1e51c2

Please sign in to comment.