Skip to content

Commit

Permalink
chore(gomod): gli/v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ShuheiKubota committed Oct 15, 2023
1 parent 0381ca7 commit 1e539d5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion convert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"testing"

"github.com/shu-go/gli"
"github.com/shu-go/gli/v2"
"github.com/shu-go/gotwant"
"github.com/xuri/excelize/v2"
)
Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.21

require (
github.com/andrew-d/go-termutil v0.0.0-20150726205930-009166a695a2
github.com/shu-go/gli v1.5.7
github.com/shu-go/gli/v2 v2.0.0
github.com/shu-go/gotwant v0.0.0-20190920074605-b4f19c0bac91
github.com/xuri/excelize/v2 v2.8.0
)
Expand All @@ -17,6 +17,7 @@ require (
github.com/richardlehane/msoleps v1.0.3 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/shu-go/cliparser v0.2.2 // indirect
github.com/shu-go/gli v1.5.7 // indirect
github.com/xuri/efp v0.0.0-20230802181842-ad255f2331ca // indirect
github.com/xuri/nfp v0.0.0-20230919160717-d98342af3f05 // indirect
golang.org/x/crypto v0.14.0 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ github.com/shu-go/cliparser v0.2.2/go.mod h1:oX+xgwUi9B2OzBFudKc5ayoqWhlVAbuN67r
github.com/shu-go/clise v0.0.0-20190822023516-79849fb81cfe/go.mod h1:VLiMEzXMBozBLD37i3id3qPflaupus48v/979ipQ43s=
github.com/shu-go/gli v1.5.7 h1:bvzFPU/ArxzmCTsegXjN3nwOzvV62LPUCsa5bwBfyMg=
github.com/shu-go/gli v1.5.7/go.mod h1:WZSG6NFYr/1rwT2F3Oms0gWyklvjJNDW6qvBfZ/tM4U=
github.com/shu-go/gli/v2 v2.0.0 h1:N+mKu3Q0wU35pCTzemzSrm94uMa8E6n2rKWxEpcXJ74=
github.com/shu-go/gli/v2 v2.0.0/go.mod h1:jqWDLcPmqv6BjiS5rVjv8BFhnpqyMEyZgg06OmASP+4=
github.com/shu-go/gotwant v0.0.0-20190920074605-b4f19c0bac91 h1:nwDc3kHbf9scf1UZIWiWw5tZF3Z4yOJAMjNN+kYXJwE=
github.com/shu-go/gotwant v0.0.0-20190920074605-b4f19c0bac91/go.mod h1:FZepfqvib0mXjHiaQPTv0RUD5QMpMA/FHLfBQjZRRQg=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"encoding/csv"

"github.com/andrew-d/go-termutil"
"github.com/shu-go/gli"
"github.com/shu-go/gli/v2"
"github.com/xuri/excelize/v2"
)

Expand All @@ -38,7 +38,7 @@ type globalCmd struct {

NumberXlsxFmt string `cli:"number-xlsx,nxf" default:""`

Columns gli.Map `cli:"columns,cols" help:"[SHEET!]COLUMN_NAME:TYPE[(INPUT_FORMAT[->OUTPUT_FORMAT])],..."`
Columns map[string]string `cli:"columns,cols" help:"[SHEET!]COLUMN_NAME:TYPE[(INPUT_FORMAT[->OUTPUT_FORMAT])],..."`

PipelinedName string `cli:"pipelined-name,name=SHEET_NAME" help:"the name of a pipelined CSV" default:"Sheet1"`
}
Expand Down

0 comments on commit 1e539d5

Please sign in to comment.