Skip to content

Commit

Permalink
Rename octago to urfave
Browse files Browse the repository at this point in the history
  • Loading branch information
dearchap committed Nov 12, 2024
1 parent 5e90e50 commit 5150bc6
Show file tree
Hide file tree
Showing 22 changed files with 1,144 additions and 1,144 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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)
# 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)

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

## Supported types in structures:
Expand Down Expand Up @@ -101,7 +101,7 @@ import (
"log"
"time"

"github.com/octago/sflags/gen/gflag"
"github.com/urfave/sflags/gen/gflag"
)

type httpConfig struct {
Expand Down
2 changes: 1 addition & 1 deletion examples/anonymous/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"os"

"github.com/davecgh/go-spew/spew"
"github.com/octago/sflags/gen/gflag"
"github.com/urfave/sflags/gen/gflag"
)

type httpConfig struct {
Expand Down
4 changes: 2 additions & 2 deletions examples/cobra/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"time"

"github.com/davecgh/go-spew/spew"
"github.com/octago/sflags"
"github.com/octago/sflags/gen/gpflag"
"github.com/spf13/cobra"
"github.com/urfave/sflags"
"github.com/urfave/sflags/gen/gpflag"
)

type httpConfig struct {
Expand Down
4 changes: 2 additions & 2 deletions examples/flag/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"time"

"github.com/davecgh/go-spew/spew"
"github.com/octago/sflags"
"github.com/octago/sflags/gen/gflag"
"github.com/urfave/sflags"
"github.com/urfave/sflags/gen/gflag"
)

type httpConfig struct {
Expand Down
4 changes: 2 additions & 2 deletions examples/kingpin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (

"github.com/alecthomas/kingpin/v2"
"github.com/davecgh/go-spew/spew"
"github.com/octago/sflags"
"github.com/octago/sflags/gen/gkingpin"
"github.com/urfave/sflags"
"github.com/urfave/sflags/gen/gkingpin"
)

type httpConfig struct {
Expand Down
4 changes: 2 additions & 2 deletions examples/pflag/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"time"

"github.com/davecgh/go-spew/spew"
"github.com/octago/sflags"
"github.com/octago/sflags/gen/gpflag"
"github.com/urfave/sflags"
"github.com/urfave/sflags/gen/gpflag"
)

type httpConfig struct {
Expand Down
2 changes: 1 addition & 1 deletion examples/simple_flag/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"log"
"time"

"github.com/octago/sflags/gen/gflag"
"github.com/urfave/sflags/gen/gflag"
)

type httpConfig struct {
Expand Down
4 changes: 2 additions & 2 deletions examples/urfave_cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"time"

"github.com/davecgh/go-spew/spew"
"github.com/octago/sflags"
"github.com/octago/sflags/gen/gcli"
"github.com/urfave/cli/v2"
"github.com/urfave/sflags"
"github.com/urfave/sflags/gen/gcli"
)

type httpConfig struct {
Expand Down
6 changes: 3 additions & 3 deletions examples/validator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ package main
import (
"log"

"github.com/octago/sflags"
"github.com/octago/sflags/gen/gflag"
"github.com/octago/sflags/validator/govalidator"
"github.com/urfave/sflags"
"github.com/urfave/sflags/gen/gflag"
"github.com/urfave/sflags/validator/govalidator"
)

type config struct {
Expand Down
2 changes: 1 addition & 1 deletion gen/gcli/gcli.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package gcli

import (
"github.com/octago/sflags"
"github.com/urfave/cli/v2"
"github.com/urfave/sflags"
)

// GenerateTo takes a list of sflag.Flag,
Expand Down
2 changes: 1 addition & 1 deletion gen/gcli/gcli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"io"
"testing"

"github.com/octago/sflags"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/urfave/cli/v2"
"github.com/urfave/sflags"
)

type cfg1 struct {
Expand Down
2 changes: 1 addition & 1 deletion gen/gcli/gcliv3.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package gcli

import (
"github.com/octago/sflags"
"github.com/urfave/cli/v3"
"github.com/urfave/sflags"
)

type boolFlag interface {
Expand Down
2 changes: 1 addition & 1 deletion gen/gcli/gcliv3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"io"
"testing"

"github.com/octago/sflags"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/urfave/cli/v3"
"github.com/urfave/sflags"
)

type cfg2 struct {
Expand Down
2 changes: 1 addition & 1 deletion gen/gflag/gflag.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"flag"
"os"

"github.com/octago/sflags"
"github.com/urfave/sflags"
)

// flagSet describes interface,
Expand Down
2 changes: 1 addition & 1 deletion gen/gflag/gflag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"os"
"testing"

"github.com/octago/sflags"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/urfave/sflags"
)

type cfg1 struct {
Expand Down
2 changes: 1 addition & 1 deletion gen/gkingpin/gkingpin.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"unicode/utf8"

"github.com/alecthomas/kingpin/v2"
"github.com/octago/sflags"
"github.com/urfave/sflags"
)

type flagger interface {
Expand Down
2 changes: 1 addition & 1 deletion gen/gkingpin/gkingpin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"testing"

"github.com/alecthomas/kingpin/v2"
"github.com/octago/sflags"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/urfave/sflags"
)

type cfg1 struct {
Expand Down
2 changes: 1 addition & 1 deletion gen/gpflag/gpflag.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package gpflag
import (
"os"

"github.com/octago/sflags"
"github.com/spf13/pflag"
"github.com/urfave/sflags"
)

// flagSet describes interface,
Expand Down
2 changes: 1 addition & 1 deletion gen/gpflag/gpflag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"testing"
"time"

"github.com/octago/sflags"
"github.com/spf13/pflag"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/urfave/sflags"
)

type cfg1 struct {
Expand Down
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/octago/sflags
module github.com/urfave/sflags

go 1.21.5

Expand Down
4 changes: 2 additions & 2 deletions validator/govalidator/govalidator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"log"
"testing"

"github.com/octago/sflags"
"github.com/octago/sflags/gen/gflag"
"github.com/stretchr/testify/assert"
"github.com/urfave/sflags"
"github.com/urfave/sflags/gen/gflag"
)

func ExampleNew() {
Expand Down
Loading

0 comments on commit 5150bc6

Please sign in to comment.