Skip to content

Commit 1b058cb

Browse files
committed
Rename octago to urfave
1 parent 4700ea1 commit 1b058cb

File tree

22 files changed

+1144
-1144
lines changed

22 files changed

+1144
-1144
lines changed

README.md

Lines changed: 3 additions & 3 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 3 additions & 3 deletions
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

Lines changed: 1 addition & 1 deletion
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,

0 commit comments

Comments
 (0)