Skip to content

Commit

Permalink
Merge pull request #38 from dearchap/rename_to_urfave
Browse files Browse the repository at this point in the history
Rename octago to urfave
  • Loading branch information
dearchap authored Nov 12, 2024
2 parents 4700ea1 + 4e2442b commit 3e89178
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://img.shields.io/github/check-runs/urfave/sflags/main?label=build%20status)](https://github.com/urfave/sflags/actions?query=branch%3Amain) [![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 3e89178

Please sign in to comment.