Skip to content

Commit

Permalink
v0.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
shenwei356 committed Nov 28, 2016
1 parent 69dbb9b commit c99c6e3
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 30 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ Examples
`csvtk -t plot line testdata/xy.tsv -x X -y Y -g Group`
![lineplot.png](testdata/figures/lineplot.png)
- plot scatter plot with X-Y data
`csvtk -t plot line testdata/xy.tsv -x X -y Y -g Group`
`csvtk -t plot line testdata/xy.tsv -x X -y Y -g Group --scatter `
![scatter.png](testdata/figures/scatter.png)

## Contact
Expand Down
2 changes: 1 addition & 1 deletion csvtk/cmd/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
)

// VERSION of csvtk
const VERSION = "0.4.2"
const VERSION = "0.4.3"

func checkError(err error) {
if err != nil {
Expand Down
9 changes: 5 additions & 4 deletions csvtk/cmd/mutate.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,18 @@ var mutateCmd = &cobra.Command{
}
runtime.GOMAXPROCS(config.NumCPUs)

name := getFlagString(cmd, "name")
if name == "" {
checkError(fmt.Errorf("falg -n (--name) needed"))
}
ignoreCase := getFlagBool(cmd, "ignore-case")
naUnmatched := getFlagBool(cmd, "na")
pattern := getFlagString(cmd, "pattern")
if !regexp.MustCompile(`\(.+\)`).MatchString(pattern) {
checkError(fmt.Errorf(`value of -p (--pattern) must contains "(" and ")" to capture data which is used to create new column`))
}

name := getFlagString(cmd, "name")
if !config.NoHeaderRow && name == "" {
checkError(fmt.Errorf("falg -n (--name) needed"))
}

p := pattern
if ignoreCase {
p = "(?i)" + p
Expand Down
50 changes: 27 additions & 23 deletions doc/docs/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,33 @@

## Current Version

[csvtk v0.4.2](https://github.com/shenwei356/csvtk/releases/tag/v0.4.2)
[![Github Releases (by Release)](https://img.shields.io/github/downloads/shenwei356/csvtk/v0.4.2/total.svg)](https://github.com/shenwei356/csvtk/releases/tag/v0.4.2)
[csvtk v0.4.3](https://github.com/shenwei356/csvtk/releases/tag/v0.4.3)
[![Github Releases (by Release)](https://img.shields.io/github/downloads/shenwei356/csvtk/v0.4.3/total.svg)](https://github.com/shenwei356/csvtk/releases/tag/v0.4.3)

- improvement of using experience: flag `-n` is not required anymore when flag `-H` in `csvtk mutate`

- fix highlight bug of `csvtk grep`: if the pattern matches multiple parts,
the text will be wrongly edited.
- changes: disable highlight when pattern file given.
- change the default output of all ploting commands to STDOUT, now you can
pipe the image to "display" command of Imagemagic.

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.4.2/csvtk_linux_386.tar.gz)
[csvtk_linux_386.tar.gz](https://github.com/shenwei356/csvtk/releases/download/v0.4.2/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.4.2/csvtk_linux_amd64.tar.gz)
[csvtk_linux_amd64.tar.gz](https://github.com/shenwei356/csvtk/releases/download/v0.4.2/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.4.2/csvtk_linux_arm.tar.gz)
[csvtk_linux_arm.tar.gz](https://github.com/shenwei356/csvtk/releases/download/v0.4.2/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.4.2/csvtk_linux_arm64.tar.gz)
[csvtk_linux_arm64.tar.gz](https://github.com/shenwei356/csvtk/releases/download/v0.4.2/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.4.3/csvtk_linux_386.tar.gz)
[csvtk_linux_386.tar.gz](https://github.com/shenwei356/csvtk/releases/download/v0.4.3/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.4.3/csvtk_linux_amd64.tar.gz)
[csvtk_linux_amd64.tar.gz](https://github.com/shenwei356/csvtk/releases/download/v0.4.3/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.4.3/csvtk_linux_arm.tar.gz)
[csvtk_linux_arm.tar.gz](https://github.com/shenwei356/csvtk/releases/download/v0.4.3/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.4.3/csvtk_linux_arm64.tar.gz)
[csvtk_linux_arm64.tar.gz](https://github.com/shenwei356/csvtk/releases/download/v0.4.3/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.4.2/csvtk_darwin_386.tar.gz)
[csvtk_darwin_386.tar.gz](https://github.com/shenwei356/csvtk/releases/download/v0.4.2/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.4.2/csvtk_darwin_amd64.tar.gz)
[csvtk_darwin_amd64.tar.gz](https://github.com/shenwei356/csvtk/releases/download/v0.4.2/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.4.3/csvtk_darwin_386.tar.gz)
[csvtk_darwin_386.tar.gz](https://github.com/shenwei356/csvtk/releases/download/v0.4.3/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.4.3/csvtk_darwin_amd64.tar.gz)
[csvtk_darwin_amd64.tar.gz](https://github.com/shenwei356/csvtk/releases/download/v0.4.3/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.4.2/csvtk_windows_386.exe.tar.gz)
[csvtk_windows_386.exe.tar.gz](https://github.com/shenwei356/csvtk/releases/download/v0.4.2/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.4.2/csvtk_windows_amd64.exe.tar.gz)
[csvtk_windows_amd64.exe.tar.gz](https://github.com/shenwei356/csvtk/releases/download/v0.4.2/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.4.3/csvtk_windows_386.exe.tar.gz)
[csvtk_windows_386.exe.tar.gz](https://github.com/shenwei356/csvtk/releases/download/v0.4.3/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.4.3/csvtk_windows_amd64.exe.tar.gz)
[csvtk_windows_amd64.exe.tar.gz](https://github.com/shenwei356/csvtk/releases/download/v0.4.3/csvtk_windows_amd64.exe.tar.gz)

## Installation

Expand Down Expand Up @@ -69,6 +66,13 @@ For Go developer, just one command:

## Previous Versions

[csvtk v0.4.2](https://github.com/shenwei356/csvtk/releases/tag/v0.4.2)
[![Github Releases (by Release)](https://img.shields.io/github/downloads/shenwei356/csvtk/v0.4.2/total.svg)](https://github.com/shenwei356/csvtk/releases/tag/v0.4.2)
- fix highlight bug of `csvtk grep`: if the pattern matches multiple parts,
the text will be wrongly edited.
- changes: disable highlight when pattern file given.
- change the default output of all ploting commands to STDOUT, now you can
pipe the image to "display" command of Imagemagic.
- [csvtk v0.4.1](https://github.com/shenwei356/csvtk/releases/tag/v0.4.1)
[![Github Releases (by Release)](https://img.shields.io/github/downloads/shenwei356/csvtk/v0.4.1/total.svg)](https://github.com/shenwei356/csvtk/releases/tag/v0.4.1)
- Nothing changed. Just fix the links due to inappropriate deployment of v0.4.0
Expand Down
2 changes: 1 addition & 1 deletion doc/site
Submodule site updated from 330767 to ee8611

0 comments on commit c99c6e3

Please sign in to comment.