Merge pull request #1494 from urfave/v3-mod-bump

Bump declared module and internal usage to `/v3/`
This commit is contained in:
Dan Buch 2022-10-02 20:09:15 -04:00 committed by GitHub
commit bd44c95e0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 28 additions and 31 deletions

View File

@ -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: |

View File

@ -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/github-com-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)

View File

@ -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

View File

@ -5,7 +5,7 @@ package altsrc
import (
"flag"
"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
)
// BoolFlag is the flag type that wraps cli.BoolFlag to allow

View File

@ -10,7 +10,7 @@ import (
"testing"
"time"
"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
)
type testApplyInputSource struct {

View File

@ -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

View File

@ -6,7 +6,7 @@ import (
"os"
"testing"
"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
)
const (

View File

@ -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

View File

@ -6,7 +6,7 @@ import (
"strings"
"time"
"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
)
// MapInputSource implements InputSourceContext to return

View File

@ -6,7 +6,7 @@ import (
"os"
"testing"
"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
)
func TestCommandTomFileTest(t *testing.T) {

View File

@ -5,7 +5,7 @@ import (
"reflect"
"github.com/BurntSushi/toml"
"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
)
type tomlMap struct {

View File

@ -6,7 +6,7 @@ import (
"os"
"testing"
"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
)
func TestCommandYamlFileTest(t *testing.T) {

View File

@ -9,7 +9,7 @@ import (
"runtime"
"strings"
"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
"gopkg.in/yaml.v3"
)

View File

@ -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() {

1
docs/v3/index.md Normal file
View File

@ -0,0 +1 @@
# v3 guide

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/urfave/cli/v2
module github.com/urfave/cli/v3
go 1.18

4
go.sum
View File

@ -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=
@ -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=

View File

@ -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,
@ -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

View File

@ -13,7 +13,7 @@ import (
"path/filepath"
"strings"
"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
)
const (
@ -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(

View File

@ -3,7 +3,7 @@
package main
import (
"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
)
func main() {

View File

@ -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"
)

View File

@ -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) {

View File

@ -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) {

View File

@ -6,7 +6,7 @@ import (
"fmt"
"testing"
"github.com/urfave/cli/v2"
"github.com/urfave/cli/v3"
)
func TestFloat64SliceFlag_SatisfiesFlagInterface(t *testing.T) {