From 63f2fd9fe9978a2ab3afe949807d680471f50bc7 Mon Sep 17 00:00:00 2001 From: Sylvain Rabot Date: Sat, 2 Jan 2021 22:23:03 +0100 Subject: [PATCH 1/2] Fix csv2table Signed-off-by: Sylvain Rabot --- csv2table/csv2table.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/csv2table/csv2table.go b/csv2table/csv2table.go index 6420c96..05c0b09 100644 --- a/csv2table/csv2table.go +++ b/csv2table/csv2table.go @@ -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() { @@ -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() } From b7d8e28824980aa2fcfd62868b19a89b55a11e44 Mon Sep 17 00:00:00 2001 From: Sylvain Rabot Date: Sat, 2 Jan 2021 22:23:14 +0100 Subject: [PATCH 2/2] Update dependencies Signed-off-by: Sylvain Rabot --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 0430d99..484ab01 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index 1e7b9aa..4a94bf5 100644 --- a/go.sum +++ b/go.sum @@ -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=