Skip to content

Commit

Permalink
Merge pull request #1494 from urfave/v3-mod-bump
Browse files Browse the repository at this point in the history
Bump declared module and internal usage to `/v3/`
  • Loading branch information
meatballhat authored Oct 3, 2022
2 parents a529996 + 40d886b commit bd44c95
Show file tree
Hide file tree
Showing 24 changed files with 28 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
chmod +x "${GITHUB_WORKSPACE}/.local/bin/gfmrun"
- name: gfmrun
run: go run internal/build/build.go gfmrun docs/v2/manual.md
run: go run internal/build/build.go gfmrun docs/v3/index.md

- name: diff check
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# cli

[![GoDoc](https://godoc.org/github.com/urfave/cli?status.svg)](https://pkg.go.dev/github.com/urfave/cli/v2)
[![GoDoc](https://godoc.org/github.com/urfave/cli?status.svg)](https://pkg.go.dev/github.com/urfave/cli/v3)
[![codebeat](https://codebeat.co/badges/0a8f30aa-f975-404b-b878-5fab3ae1cc5f)](https://codebeat.co/projects/jackfan.us.kg-urfave-cli)
[![Go Report Card](https://goreportcard.com/badge/urfave/cli)](https://goreportcard.com/report/urfave/cli)
[![codecov](https://codecov.io/gh/urfave/cli/branch/main/graph/badge.svg)](https://codecov.io/gh/urfave/cli)
Expand Down
2 changes: 1 addition & 1 deletion altsrc/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"
"syscall"

"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
)

// FlagInputSourceExtension is an extension interface of cli.Flag that
Expand Down
2 changes: 1 addition & 1 deletion altsrc/flag_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion altsrc/flag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"
"time"

"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
)

type testApplyInputSource struct {
Expand Down
2 changes: 1 addition & 1 deletion altsrc/input_source_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package altsrc
import (
"time"

"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
)

// InputSourceContext is an interface used to allow
Expand Down
2 changes: 1 addition & 1 deletion altsrc/json_command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"testing"

"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion altsrc/json_source_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"time"

"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
)

// NewJSONSourceFromFlagFunc returns a func that takes a cli.Context
Expand Down
2 changes: 1 addition & 1 deletion altsrc/map_input_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"time"

"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
)

// MapInputSource implements InputSourceContext to return
Expand Down
2 changes: 1 addition & 1 deletion altsrc/toml_command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"testing"

"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
)

func TestCommandTomFileTest(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion altsrc/toml_file_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"

"github.com/BurntSushi/toml"
"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
)

type tomlMap struct {
Expand Down
2 changes: 1 addition & 1 deletion altsrc/yaml_command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"testing"

"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
)

func TestCommandYamlFileTest(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion altsrc/yaml_file_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"runtime"
"strings"

"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"

"gopkg.in/yaml.v3"
)
Expand Down
4 changes: 2 additions & 2 deletions altsrc/yaml_file_loader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"os"
"time"

"github.com/urfave/cli/v2"
"github.com/urfave/cli/v2/altsrc"
"github.com/urfave/cli/v3"
"github.com/urfave/cli/v3/altsrc"
)

func ExampleApp_Run_yamlFileLoaderDuration() {
Expand Down
1 change: 1 addition & 0 deletions docs/v3/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# v3 guide
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/urfave/cli/v2
module github.com/urfave/cli/v3

go 1.18

Expand Down
4 changes: 0 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
github.com/BurntSushi/toml v1.1.0 h1:ksErzDEI1khOiGPgpwuI7x2ebx/uXQNw7xJpn9Eq1+I=
github.com/BurntSushi/toml v1.1.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
github.com/cpuguy83/go-md2man/v2 v2.0.1 h1:r/myEWzV9lfsM1tFLgDyu0atFtJ1fXn261LKYj/3DxU=
github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w=
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
Expand All @@ -10,8 +8,6 @@ github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRT
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8=
golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e h1:FDhOuMEY4JVRztM/gsbk+IKUQ8kj74bxZrgw87eMMVc=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
Expand Down
4 changes: 2 additions & 2 deletions godoc-current.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package cli // import "github.com/urfave/cli/v2"
package cli // import "github.com/urfave/cli/v3"

Package cli provides a minimal framework for creating and organizing command
line Go applications. cli is designed to be easy to understand and write,
Expand Down Expand Up @@ -1948,7 +1948,7 @@ type VisibleFlagCategory interface {
}
VisibleFlagCategory is a category containing flags.

package altsrc // import "github.com/urfave/cli/v2/altsrc"
package altsrc // import "github.com/urfave/cli/v3/altsrc"


FUNCTIONS
Expand Down
6 changes: 3 additions & 3 deletions internal/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"path/filepath"
"strings"

"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
)

const (
Expand Down Expand Up @@ -132,10 +132,10 @@ func TestActionFunc(c *cli.Context) error {
tags := c.String("tags")

for _, pkg := range c.StringSlice("packages") {
packageName := "github.com/urfave/cli/v2"
packageName := "github.com/urfave/cli/v3"

if pkg != "cli" {
packageName = fmt.Sprintf("github.com/urfave/cli/v2/%s", pkg)
packageName = fmt.Sprintf("github.com/urfave/cli/v3/%s", pkg)
}

if err := runCmd(
Expand Down
2 changes: 1 addition & 1 deletion internal/example-cli/example-cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package main

import (
"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions internal/genflags/cmd/genflags/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"syscall"
"text/template"

"github.com/urfave/cli/v2"
"github.com/urfave/cli/v2/internal/genflags"
"github.com/urfave/cli/v3"
"github.com/urfave/cli/v3/internal/genflags"
"gopkg.in/yaml.v3"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/genflags/package_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/urfave/cli/v2/internal/genflags"
"github.com/urfave/cli/v3/internal/genflags"
)

func TestTypeName(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/genflags/spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/urfave/cli/v2/internal/genflags"
"github.com/urfave/cli/v3/internal/genflags"
)

func TestSpec_SortedFlagTypes(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion zz_generated.flags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"testing"

"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
)

func TestFloat64SliceFlag_SatisfiesFlagInterface(t *testing.T) {
Expand Down

0 comments on commit bd44c95

Please sign in to comment.