Skip to content

Commit

Permalink
bump up version to 0.0.18
Browse files Browse the repository at this point in the history
  • Loading branch information
iret-kawashima committed Dec 11, 2023
1 parent 8d38783 commit b064c5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ func (a *app) printResult(result *parser.Result, results []*parser.Result) {
var builder strings.Builder
w := func(r *parser.Result) {
if a.dest.header && a.dest.output == TSV.String() {
writeTSVHeader(r.Labels[0])
writeTSVHeader(r.Labels[0], a.dest.lineNum)
}
for i, data := range r.Data {
if i > 0 {
Expand Down Expand Up @@ -501,6 +501,9 @@ func pipeJoin(s []string) string {
return strings.Join(s, "|")
}

func writeTSVHeader(line []string) {
func writeTSVHeader(line []string, lineNumber bool) {
if lineNumber {
line = append([]string{"index"}, line...)
}
fmt.Println(strings.Join(line, "\t"))
}
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ package main

const Name = "alpen"

const Version = "0.0.17"
const Version = "0.0.18"

var Revision = "HEAD"

0 comments on commit b064c5c

Please sign in to comment.