0
0
mirror of https://github.com/thegeeklab/git-sv.git synced 2024-06-02 17:39:39 +02:00

refactor: update urfave/cli version

This commit is contained in:
Beatriz Vieira 2020-02-01 18:37:16 -03:00
parent afa57122ba
commit 3d51776e9a
4 changed files with 8 additions and 8 deletions

View File

@ -7,7 +7,7 @@ import (
"time"
"github.com/Masterminds/semver"
"github.com/urfave/cli"
"github.com/urfave/cli/v2"
)
func currentVersionHandler(git sv.Git) func(c *cli.Context) error {

View File

@ -5,7 +5,7 @@ import (
"os"
"sv4git/sv"
"github.com/urfave/cli"
"github.com/urfave/cli/v2"
)
// Version for git-sv
@ -22,7 +22,7 @@ func main() {
app.Name = "sv"
app.Version = Version
app.Usage = "semantic version for git"
app.Commands = []cli.Command{
app.Commands = []*cli.Command{
{
Name: "current-version",
Aliases: []string{"cv"},
@ -40,14 +40,14 @@ func main() {
Aliases: []string{"cl"},
Usage: "list all commit logs since last version as jsons",
Action: commitLogHandler(git, semverProcessor),
Flags: []cli.Flag{cli.StringFlag{Name: "t", Usage: "get commit log from tag"}},
Flags: []cli.Flag{&cli.StringFlag{Name: "t", Usage: "get commit log from tag"}},
},
{
Name: "release-notes",
Aliases: []string{"rn"},
Usage: "generate release notes",
Action: releaseNotesHandler(git, semverProcessor, releasenotesProcessor),
Flags: []cli.Flag{cli.StringFlag{Name: "t", Usage: "get release note from tag"}},
Flags: []cli.Flag{&cli.StringFlag{Name: "t", Usage: "get release note from tag"}},
},
{
Name: "tag",

2
go.mod
View File

@ -6,5 +6,5 @@ require (
github.com/Masterminds/semver v1.5.0
github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect
github.com/kelseyhightower/envconfig v1.4.0
github.com/urfave/cli v1.22.1
github.com/urfave/cli/v2 v2.1.1
)

4
go.sum
View File

@ -13,7 +13,7 @@ github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
github.com/urfave/cli v1.22.1 h1:+mkCCcOFKPnCmVYVcURKps1Xe+3zP90gSYGNfRkjoIY=
github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
github.com/urfave/cli/v2 v2.1.1 h1:Qt8FeAtxE/vfdrLmR3rxR6JRE0RoVmbXu8+6kZtYU4k=
github.com/urfave/cli/v2 v2.1.1/go.mod h1:SE9GqnLQmjVa0iPEY0f1w3ygNIYcIJ0OKPMoW2caLfQ=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=