Skip to content

Commit

Permalink
Merge pull request #180 from sylr/update-dep
Browse files Browse the repository at this point in the history
Update dep
  • Loading branch information
mattn committed Feb 10, 2021
2 parents 42e21c7 + b7d8e28 commit c7d2a8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
5 changes: 0 additions & 5 deletions csv2table/csv2table.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ var (
align = flag.String("a", "none", "Set alignment with eg. none|left|right|center")
pipe = flag.Bool("p", false, "Support for Piping from STDIN")
border = flag.Bool("b", true, "Enable / disable table border")
casing = flag.Bool("c", false, "Set header to be title case")
)

func main() {
Expand Down Expand Up @@ -77,10 +76,6 @@ func process(r io.Reader) {
table.SetAlignment(tablewriter.ALIGN_CENTER)
}
table.SetBorder(*border)
if *casing {
table.SetAutoFormatHeaders(false)
table.SetTitleCase(*casing)
}
table.Render()
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/olekukonko/tablewriter

go 1.12

require github.com/mattn/go-runewidth v0.0.7
require github.com/mattn/go-runewidth v0.0.9
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/mattn/go-runewidth v0.0.7 h1:Ei8KR0497xHyKJPAv59M1dkC+rOZCMBJ+t3fZ+twI54=
github.com/mattn/go-runewidth v0.0.7/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0=
github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=

0 comments on commit c7d2a8a

Please sign in to comment.