Skip to content

Commit

Permalink
Rename package to table
Browse files Browse the repository at this point in the history
  • Loading branch information
lewissteele committed Dec 13, 2024
1 parent 52a5b06 commit 9e13987
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cmd/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/lewissteele/dbat/internal/db"
"github.com/lewissteele/dbat/internal/input"
"github.com/lewissteele/dbat/internal/output"

Check failure on line 12 in cmd/connect.go

View workflow job for this annotation

GitHub Actions / build

no required module provides package github.com/lewissteele/dbat/internal/output; to add it:
"github.com/lewissteele/dbat/internal/table"
"github.com/spf13/cobra"
)

Expand Down Expand Up @@ -60,7 +61,7 @@ func executor(q string) {
return
}

output.RenderTable(results)
table.Render(results)
db.SaveHistory(q)
}

Expand Down
4 changes: 2 additions & 2 deletions internal/output/table.go → internal/table/table.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package output
package table

import (
"fmt"
"github.com/jedib0t/go-pretty/v6/table"
)

func RenderTable(d []map[string]interface{}) {
func Render(d []map[string]interface{}) {
var headers table.Row

for k, _ := range d[0] {
Expand Down

0 comments on commit 9e13987

Please sign in to comment.