From e279174e06266adc1bea0af72f291bb5d22f5fba Mon Sep 17 00:00:00 2001 From: shenwei356 Date: Fri, 7 Oct 2016 01:08:28 +0800 Subject: [PATCH] v0.3.8.1 --- csvtk/cmd/grep.go | 3 +-- csvtk/cmd/helper.go | 2 +- doc/docs/download.md | 19 ++++++++++++------- doc/site | 2 +- 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/csvtk/cmd/grep.go b/csvtk/cmd/grep.go index 4f54760..580e065 100644 --- a/csvtk/cmd/grep.go +++ b/csvtk/cmd/grep.go @@ -27,10 +27,10 @@ import ( "runtime" "strings" - "github.com/shenwei356/xopen" "github.com/fatih/color" "github.com/mattn/go-colorable" "github.com/shenwei356/breader" + "github.com/shenwei356/xopen" "github.com/spf13/cobra" ) @@ -244,7 +244,6 @@ var grepCmd = &cobra.Command{ for _, f := range fields { target = record[f-1] hitOne = false - if useRegexp { for _, re := range patternsMap { if re.MatchString(target) { diff --git a/csvtk/cmd/helper.go b/csvtk/cmd/helper.go index 8d08ce8..8d86fad 100644 --- a/csvtk/cmd/helper.go +++ b/csvtk/cmd/helper.go @@ -36,7 +36,7 @@ import ( ) // VERSION of csvtk -const VERSION = "0.3.8" +const VERSION = "0.3.8.1" func checkError(err error) { if err != nil { diff --git a/doc/docs/download.md b/doc/docs/download.md index f9ed681..6723d36 100644 --- a/doc/docs/download.md +++ b/doc/docs/download.md @@ -6,14 +6,12 @@ ## Current Version -[csvtk v0.3.8](https://github.com/shenwei356/csvtk/releases/tag/v0.3.8) +[csvtk v0.3.8.1](https://github.com/shenwei356/csvtk/releases/tag/v0.3.8.1) -- new feature: `csvtk cut` supports ordered fields output. e.g., `csvtk cut -f 2,1` - outputs the 2nd column in front of 1th column. -- new commands: `csvtk plot` can plot three types of plots by subcommands: - - `csvtk plot hist`: histogram - - `csvtk plot box`: boxplot - - `csvtk plot line`: line plot and scatter plot +- fix bug of flag parsing library [pflag](https://github.com/spf13/pflag), + [detail](https://github.com/spf13/pflag/pull/98). + The bug affected the `csvtk grep -r -p`, when value of `-p` contain "[" and "]" + at the beginning or end, they are wrongly parsed. Links: @@ -61,6 +59,13 @@ For Go developer, just one command: ## Previous Versions +- [csvtk v0.3.8](https://github.com/shenwei356/csvtk/releases/tag/v0.3.8) + - new feature: `csvtk cut` supports ordered fields output. e.g., `csvtk cut -f 2,1` + outputs the 2nd column in front of 1th column. + - new commands: `csvtk plot` can plot three types of plots by subcommands: + - `csvtk plot hist`: histogram + - `csvtk plot box`: boxplot + - `csvtk plot line`: line plot and scatter plot - [csvtk v0.3.7](https://github.com/shenwei356/csvtk/releases/tag/v0.3.7) - fix a serious bug of using negative field of column name, e.g. `-f "-id"` - [csvtk v0.3.6](https://github.com/shenwei356/csvtk/releases/tag/v0.3.6) diff --git a/doc/site b/doc/site index 54b3c9f..1043481 160000 --- a/doc/site +++ b/doc/site @@ -1 +1 @@ -Subproject commit 54b3c9fd333747a1d3646e68ba263f6f20284d94 +Subproject commit 1043481dac1403f291bb8cc474a5e5e2e9f6025c