From 35236d834ee85fe4e583a3b5dd17e9536ced5415 Mon Sep 17 00:00:00 2001 From: shenwei356 Date: Thu, 13 Oct 2016 11:18:40 +0800 Subject: [PATCH] v0.3.9 --- csvtk/cmd/helper.go | 2 +- csvtk/cmd/sort.go | 2 +- doc/docs/download.md | 28 +++++++++++++++------------- doc/site | 2 +- 4 files changed, 18 insertions(+), 16 deletions(-) diff --git a/csvtk/cmd/helper.go b/csvtk/cmd/helper.go index 8d86fad..f7994cd 100644 --- a/csvtk/cmd/helper.go +++ b/csvtk/cmd/helper.go @@ -36,7 +36,7 @@ import ( ) // VERSION of csvtk -const VERSION = "0.3.8.1" +const VERSION = "0.3.9" func checkError(err error) { if err != nil { diff --git a/csvtk/cmd/sort.go b/csvtk/cmd/sort.go index f4d48a2..4c561e5 100644 --- a/csvtk/cmd/sort.go +++ b/csvtk/cmd/sort.go @@ -88,7 +88,7 @@ var sortCmd = &cobra.Command{ } file := files[0] - headerRow, _, _, _, data := parseCSVfile(cmd, config, + _, _, _, headerRow, data := parseCSVfile(cmd, config, file, fieldsStr, fuzzyFields) if len(data) == 0 { checkError(fmt.Errorf("no data to sort")) diff --git a/doc/docs/download.md b/doc/docs/download.md index 6723d36..565ced6 100644 --- a/doc/docs/download.md +++ b/doc/docs/download.md @@ -6,26 +6,23 @@ ## Current Version -[csvtk v0.3.8.1](https://github.com/shenwei356/csvtk/releases/tag/v0.3.8.1) +[csvtk v0.3.9](https://github.com/shenwei356/csvtk/releases/tag/v0.3.9) -- 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. +- fix bug: header row incomplete in `csvtk sort` result Links: - **Linux** - - [![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_linux_386.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.3.8/csvtk_linux_386.tar.gz) - - [![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_linux_amd64.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.3.8/csvtk_linux_amd64.tar.gz) - - [![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_linux_arm.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.3.8/csvtk_linux_arm.tar.gz) - - [![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_linux_arm64.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.3.8/csvtk_linux_arm64.tar.gz) + - [![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_linux_386.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.3.9/csvtk_linux_386.tar.gz) + - [![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_linux_amd64.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.3.9/csvtk_linux_amd64.tar.gz) + - [![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_linux_arm.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.3.9/csvtk_linux_arm.tar.gz) + - [![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_linux_arm64.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.3.9/csvtk_linux_arm64.tar.gz) - **Mac OS X** - - [![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_darwin_386.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.3.8/csvtk_darwin_386.tar.gz) - - [![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_darwin_amd64.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.3.8/csvtk_darwin_amd64.tar.gz) + - [![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_darwin_386.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.3.9/csvtk_darwin_386.tar.gz) + - [![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_darwin_amd64.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.3.9/csvtk_darwin_amd64.tar.gz) - **Windows** - - [![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_windows_386.exe.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.3.8/csvtk_windows_386.exe.tar.gz) - - [![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_windows_amd64.exe.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.3.8/csvtk_windows_amd64.exe.tar.gz) + - [![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_windows_386.exe.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.3.9/csvtk_windows_386.exe.tar.gz) + - [![Github Releases (by Asset)](https://img.shields.io/github/downloads/shenwei356/csvtk/latest/csvtk_windows_amd64.exe.tar.gz.svg?maxAge=3600)](https://github.com/shenwei356/csvtk/releases/download/v0.3.9/csvtk_windows_amd64.exe.tar.gz) ## Installation @@ -59,6 +56,11 @@ For Go developer, just one command: ## Previous Versions +- [csvtk v0.3.8.1](https://github.com/shenwei356/csvtk/releases/tag/v0.3.8.1) + - 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. - [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. diff --git a/doc/site b/doc/site index dd89700..2156572 160000 --- a/doc/site +++ b/doc/site @@ -1 +1 @@ -Subproject commit dd89700d793b37360b01bd658a5a694e236a65bb +Subproject commit 215657257222cf0777ad6fe97fec199f2fc1b179