Skip to content

Commit 5150bc6

Browse files
committed
Rename octago to urfave
1 parent 5e90e50 commit 5150bc6

File tree

22 files changed

+1144
-1144
lines changed

22 files changed

+1144
-1144
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Flags based on structures [![GoDoc](https://godoc.org/github.com/octago/sflags?status.svg)](http://godoc.org/github.com/octago/sflags) [![Build Status](https://travis-ci.org/octago/sflags.svg?branch=master)](https://travis-ci.org/octago/sflags) [![codecov](https://codecov.io/gh/octago/sflags/branch/master/graph/badge.svg)](https://codecov.io/gh/octago/sflags) [![Go Report Card](https://goreportcard.com/badge/github.com/octago/sflags)](https://goreportcard.com/report/github.com/octago/sflags)
1+
# Flags based on structures [![GoDoc](https://godoc.org/github.com/urfave/sflags?status.svg)](http://godoc.org/github.com/urfave/sflags) [![Build Status](https://travis-ci.org/urfave/sflags.svg?branch=master)](https://travis-ci.org/urfave/sflags) [![codecov](https://codecov.io/gh/urfave/sflags/branch/master/graph/badge.svg)](https://codecov.io/gh/urfave/sflags) [![Go Report Card](https://goreportcard.com/badge/github.com/urfave/sflags)](https://goreportcard.com/report/github.com/urfave/sflags)
22

33
The sflags package uses structs, reflection and struct field tags
44
to allow you specify command line options. It supports [different types](#supported-types-in-structures) and [features](#features).
@@ -55,7 +55,7 @@ And you can use your favorite flag or cli library!
5555
- [x] Deprecated and hidden options
5656
- [ ] Multiple ENV names
5757
- [x] Interface for user types.
58-
- [x] [Validation](https://godoc.org/github.com/octago/sflags/validator/govalidator#New) (using [govalidator](https://github.com/asaskevich/govalidator) package)
58+
- [x] [Validation](https://godoc.org/github.com/urfave/sflags/validator/govalidator#New) (using [govalidator](https://github.com/asaskevich/govalidator) package)
5959
- [x] Anonymous nested structure support (anonymous structures flatten by default)
6060

6161
## Supported types in structures:
@@ -101,7 +101,7 @@ import (
101101
"log"
102102
"time"
103103

104-
"github.com/octago/sflags/gen/gflag"
104+
"github.com/urfave/sflags/gen/gflag"
105105
)
106106

107107
type httpConfig struct {

examples/anonymous/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"os"
1111

1212
"github.com/davecgh/go-spew/spew"
13-
"github.com/octago/sflags/gen/gflag"
13+
"github.com/urfave/sflags/gen/gflag"
1414
)
1515

1616
type httpConfig struct {

examples/cobra/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import (
1111
"time"
1212

1313
"github.com/davecgh/go-spew/spew"
14-
"github.com/octago/sflags"
15-
"github.com/octago/sflags/gen/gpflag"
1614
"github.com/spf13/cobra"
15+
"github.com/urfave/sflags"
16+
"github.com/urfave/sflags/gen/gpflag"
1717
)
1818

1919
type httpConfig struct {

examples/flag/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
"time"
1212

1313
"github.com/davecgh/go-spew/spew"
14-
"github.com/octago/sflags"
15-
"github.com/octago/sflags/gen/gflag"
14+
"github.com/urfave/sflags"
15+
"github.com/urfave/sflags/gen/gflag"
1616
)
1717

1818
type httpConfig struct {

examples/kingpin/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111

1212
"github.com/alecthomas/kingpin/v2"
1313
"github.com/davecgh/go-spew/spew"
14-
"github.com/octago/sflags"
15-
"github.com/octago/sflags/gen/gkingpin"
14+
"github.com/urfave/sflags"
15+
"github.com/urfave/sflags/gen/gkingpin"
1616
)
1717

1818
type httpConfig struct {

examples/pflag/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"time"
1111

1212
"github.com/davecgh/go-spew/spew"
13-
"github.com/octago/sflags"
14-
"github.com/octago/sflags/gen/gpflag"
13+
"github.com/urfave/sflags"
14+
"github.com/urfave/sflags/gen/gpflag"
1515
)
1616

1717
type httpConfig struct {

examples/simple_flag/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"log"
99
"time"
1010

11-
"github.com/octago/sflags/gen/gflag"
11+
"github.com/urfave/sflags/gen/gflag"
1212
)
1313

1414
type httpConfig struct {

examples/urfave_cli/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import (
1010
"time"
1111

1212
"github.com/davecgh/go-spew/spew"
13-
"github.com/octago/sflags"
14-
"github.com/octago/sflags/gen/gcli"
1513
"github.com/urfave/cli/v2"
14+
"github.com/urfave/sflags"
15+
"github.com/urfave/sflags/gen/gcli"
1616
)
1717

1818
type httpConfig struct {

examples/validator/main.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ package main
55
import (
66
"log"
77

8-
"github.com/octago/sflags"
9-
"github.com/octago/sflags/gen/gflag"
10-
"github.com/octago/sflags/validator/govalidator"
8+
"github.com/urfave/sflags"
9+
"github.com/urfave/sflags/gen/gflag"
10+
"github.com/urfave/sflags/validator/govalidator"
1111
)
1212

1313
type config struct {

gen/gcli/gcli.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package gcli
22

33
import (
4-
"github.com/octago/sflags"
54
"github.com/urfave/cli/v2"
5+
"github.com/urfave/sflags"
66
)
77

88
// GenerateTo takes a list of sflag.Flag,

gen/gcli/gcli_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"io"
66
"testing"
77

8-
"github.com/octago/sflags"
98
"github.com/stretchr/testify/assert"
109
"github.com/stretchr/testify/require"
1110
"github.com/urfave/cli/v2"
11+
"github.com/urfave/sflags"
1212
)
1313

1414
type cfg1 struct {

gen/gcli/gcliv3.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package gcli
22

33
import (
4-
"github.com/octago/sflags"
54
"github.com/urfave/cli/v3"
5+
"github.com/urfave/sflags"
66
)
77

88
type boolFlag interface {

gen/gcli/gcliv3_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import (
66
"io"
77
"testing"
88

9-
"github.com/octago/sflags"
109
"github.com/stretchr/testify/assert"
1110
"github.com/stretchr/testify/require"
1211
"github.com/urfave/cli/v3"
12+
"github.com/urfave/sflags"
1313
)
1414

1515
type cfg2 struct {

gen/gflag/gflag.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"flag"
55
"os"
66

7-
"github.com/octago/sflags"
7+
"github.com/urfave/sflags"
88
)
99

1010
// flagSet describes interface,

gen/gflag/gflag_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"os"
77
"testing"
88

9-
"github.com/octago/sflags"
109
"github.com/stretchr/testify/assert"
1110
"github.com/stretchr/testify/require"
11+
"github.com/urfave/sflags"
1212
)
1313

1414
type cfg1 struct {

gen/gkingpin/gkingpin.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"unicode/utf8"
55

66
"github.com/alecthomas/kingpin/v2"
7-
"github.com/octago/sflags"
7+
"github.com/urfave/sflags"
88
)
99

1010
type flagger interface {

gen/gkingpin/gkingpin_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"testing"
66

77
"github.com/alecthomas/kingpin/v2"
8-
"github.com/octago/sflags"
98
"github.com/stretchr/testify/assert"
109
"github.com/stretchr/testify/require"
10+
"github.com/urfave/sflags"
1111
)
1212

1313
type cfg1 struct {

gen/gpflag/gpflag.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package gpflag
33
import (
44
"os"
55

6-
"github.com/octago/sflags"
76
"github.com/spf13/pflag"
7+
"github.com/urfave/sflags"
88
)
99

1010
// flagSet describes interface,

gen/gpflag/gpflag_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88
"testing"
99
"time"
1010

11-
"github.com/octago/sflags"
1211
"github.com/spf13/pflag"
1312
"github.com/stretchr/testify/assert"
1413
"github.com/stretchr/testify/require"
14+
"github.com/urfave/sflags"
1515
)
1616

1717
type cfg1 struct {

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/octago/sflags
1+
module github.com/urfave/sflags
22

33
go 1.21.5
44

validator/govalidator/govalidator_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"log"
88
"testing"
99

10-
"github.com/octago/sflags"
11-
"github.com/octago/sflags/gen/gflag"
1210
"github.com/stretchr/testify/assert"
11+
"github.com/urfave/sflags"
12+
"github.com/urfave/sflags/gen/gflag"
1313
)
1414

1515
func ExampleNew() {

0 commit comments

Comments
 (0)