mirror of
https://codeberg.org/scip/tablizer.git
synced 2025-12-17 12:31:06 +01:00
fix badge, check error
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
[](https://codeberg.org/scip/tablizer/actions)
|
[](https://ci.codeberg.org/repos/15519)
|
||||||
[](https://codeberg.org/scip/tablizer/blob/master/LICENSE)
|
[](https://codeberg.org/scip/tablizer/blob/master/LICENSE)
|
||||||
[](https://goreportcard.com/report/codeberg.org/scip/tablizer)
|
[](https://goreportcard.com/report/codeberg.org/scip/tablizer)
|
||||||
|
|
||||||
|
|||||||
@@ -26,11 +26,11 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"codeberg.org/scip/tablizer/cfg"
|
||||||
"github.com/gookit/color"
|
"github.com/gookit/color"
|
||||||
"github.com/olekukonko/tablewriter"
|
"github.com/olekukonko/tablewriter"
|
||||||
"github.com/olekukonko/tablewriter/renderer"
|
"github.com/olekukonko/tablewriter/renderer"
|
||||||
"github.com/olekukonko/tablewriter/tw"
|
"github.com/olekukonko/tablewriter/tw"
|
||||||
"codeberg.org/scip/tablizer/cfg"
|
|
||||||
"gopkg.in/yaml.v3"
|
"gopkg.in/yaml.v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -72,7 +72,10 @@ func printData(writer io.Writer, conf cfg.Config, data *Tabdata) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func output(writer io.Writer, str string) {
|
func output(writer io.Writer, str string) {
|
||||||
fmt.Fprint(writer, str)
|
_, err := fmt.Fprint(writer, str)
|
||||||
|
if err != nil {
|
||||||
|
log.Fatalf("failed to print output: %s", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user