Skip to content

Commit

Permalink
Merge pull request #518 from k1LoW/coverage-support-json
Browse files Browse the repository at this point in the history
`coverage` command support loading schema.json
  • Loading branch information
k1LoW authored Oct 7, 2023
2 parents f4d5aaa + 6922e29 commit ca6a902
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cmd/coverage.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import (
"github.com/k1LoW/tbls/cmdutil"
"github.com/k1LoW/tbls/config"
"github.com/k1LoW/tbls/coverage"
"github.com/k1LoW/tbls/datasource"
"github.com/labstack/gommon/color"
"github.com/mattn/go-runewidth"
"github.com/pkg/errors"
Expand Down Expand Up @@ -65,7 +64,7 @@ var coverageCmd = &cobra.Command{
return err
}

s, err := datasource.Analyze(c.DSN)
s, err := getSchemaFromJSONorDSN(c)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var lsCmd = &cobra.Command{

s, err := getSchemaFromJSONorDSN(c)
if err != nil {
return nil
return err
}

table := tablewriter.NewWriter(os.Stdout)
Expand Down

0 comments on commit ca6a902

Please sign in to comment.