Skip to content

Commit 0aaa7b5

Browse files
committed
v0
1 parent 17a8312 commit 0aaa7b5

17 files changed

Lines changed: 39 additions & 40 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ff [![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/github.com/peterbourgon/ff/v3) [![Latest Release](https://img.shields.io/github/release/peterbourgon/ff.svg?style=flat-square)](https://github.com/peterbourgon/ff/releases/latest) [![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fpeterbourgon%2Fff%2Fbadge&style=flat-square&label=build)](https://github.com/peterbourgon/ff/actions?query=workflow%3ATest)
1+
# ff [![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/github.com/peterbourgon/ff) [![Latest Release](https://img.shields.io/github/release/peterbourgon/ff.svg?style=flat-square)](https://github.com/peterbourgon/ff/releases/latest) [![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fpeterbourgon%2Fff%2Fbadge&style=flat-square&label=build)](https://github.com/peterbourgon/ff/actions?query=workflow%3ATest)
22

33
ff stands for flags-first, and provides an opinionated way to populate a
44
[flag.FlagSet](https://golang.org/pkg/flag#FlagSet) with configuration data from
@@ -7,7 +7,7 @@ enable parsing from environment variables (lower priority) and/or a
77
configuration file (lowest priority).
88

99
Building a commandline application in the style of `kubectl` or `docker`?
10-
Consider [package ffcli](https://pkg.go.dev/github.com/peterbourgon/ff/v3/ffcli),
10+
Consider [package ffcli](https://pkg.go.dev/github.com/peterbourgon/ff/ffcli),
1111
a natural companion to, and extension of, package ff.
1212

1313
## Usage
@@ -20,7 +20,7 @@ import (
2020
"os"
2121
"time"
2222

23-
"github.com/peterbourgon/ff/v3"
23+
"github.com/peterbourgon/ff"
2424
)
2525

2626
func main() {
@@ -34,7 +34,7 @@ func main() {
3434
```
3535
3636
Then, call ff.Parse instead of fs.Parse.
37-
[Options](https://pkg.go.dev/github.com/peterbourgon/ff/v3#Option)
37+
[Options](https://pkg.go.dev/github.com/peterbourgon/ff#Option)
3838
are available to control parse behavior.
3939
4040
```go
@@ -95,7 +95,7 @@ import (
9595
"fmt"
9696
"os"
9797

98-
"github.com/peterbourgon/ff/v3"
98+
"github.com/peterbourgon/ff"
9999
)
100100

101101
func main() {

ffcli/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ffcli [![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/github.com/peterbourgon/ff/v3/ffcli)
1+
# ffcli [![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/github.com/peterbourgon/ff/ffcli)
22

33
ffcli stands for flags-first command line interface,
44
and provides an opinionated way to build CLIs.
@@ -60,7 +60,7 @@ import (
6060
"context"
6161
"os"
6262

63-
"github.com/peterbourgon/ff/v3/ffcli"
63+
"github.com/peterbourgon/ff/ffcli"
6464
)
6565

6666
func main() {

ffcli/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strings"
99
"text/tabwriter"
1010

11-
"github.com/peterbourgon/ff/v3"
11+
"github.com/peterbourgon/ff"
1212
)
1313

1414
// Command combines a main function with a flag.FlagSet, and zero or more

ffcli/command_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
"testing"
1414
"time"
1515

16-
"github.com/peterbourgon/ff/v3/ffcli"
17-
"github.com/peterbourgon/ff/v3/fftest"
16+
"github.com/peterbourgon/ff/ffcli"
17+
"github.com/peterbourgon/ff/fftest"
1818
)
1919

2020
func TestCommandRun(t *testing.T) {

ffcli/examples/objectctl/cmd/objectctl/main.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import (
55
"fmt"
66
"os"
77

8-
"github.com/peterbourgon/ff/v3/ffcli"
9-
"github.com/peterbourgon/ff/v3/ffcli/examples/objectctl/pkg/createcmd"
10-
"github.com/peterbourgon/ff/v3/ffcli/examples/objectctl/pkg/deletecmd"
11-
"github.com/peterbourgon/ff/v3/ffcli/examples/objectctl/pkg/listcmd"
12-
"github.com/peterbourgon/ff/v3/ffcli/examples/objectctl/pkg/objectapi"
13-
"github.com/peterbourgon/ff/v3/ffcli/examples/objectctl/pkg/rootcmd"
8+
"github.com/peterbourgon/ff/ffcli"
9+
"github.com/peterbourgon/ff/ffcli/examples/objectctl/pkg/createcmd"
10+
"github.com/peterbourgon/ff/ffcli/examples/objectctl/pkg/deletecmd"
11+
"github.com/peterbourgon/ff/ffcli/examples/objectctl/pkg/listcmd"
12+
"github.com/peterbourgon/ff/ffcli/examples/objectctl/pkg/objectapi"
13+
"github.com/peterbourgon/ff/ffcli/examples/objectctl/pkg/rootcmd"
1414
)
1515

1616
func main() {

ffcli/examples/objectctl/pkg/createcmd/create.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"io"
99
"strings"
1010

11-
"github.com/peterbourgon/ff/v3/ffcli"
12-
"github.com/peterbourgon/ff/v3/ffcli/examples/objectctl/pkg/rootcmd"
11+
"github.com/peterbourgon/ff/ffcli"
12+
"github.com/peterbourgon/ff/ffcli/examples/objectctl/pkg/rootcmd"
1313
)
1414

1515
// Config for the create subcommand, including a reference to the API client.

ffcli/examples/objectctl/pkg/deletecmd/delete.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"fmt"
88
"io"
99

10-
"github.com/peterbourgon/ff/v3/ffcli"
11-
"github.com/peterbourgon/ff/v3/ffcli/examples/objectctl/pkg/rootcmd"
10+
"github.com/peterbourgon/ff/ffcli"
11+
"github.com/peterbourgon/ff/ffcli/examples/objectctl/pkg/rootcmd"
1212
)
1313

1414
// Config for the delete subcommand, including a reference to the API client.

ffcli/examples/objectctl/pkg/listcmd/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"text/tabwriter"
99
"time"
1010

11-
"github.com/peterbourgon/ff/v3/ffcli"
12-
"github.com/peterbourgon/ff/v3/ffcli/examples/objectctl/pkg/rootcmd"
11+
"github.com/peterbourgon/ff/ffcli"
12+
"github.com/peterbourgon/ff/ffcli/examples/objectctl/pkg/rootcmd"
1313
)
1414

1515
// Config for the list subcommand, including a reference

ffcli/examples/objectctl/pkg/rootcmd/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"context"
55
"flag"
66

7-
"github.com/peterbourgon/ff/v3/ffcli"
8-
"github.com/peterbourgon/ff/v3/ffcli/examples/objectctl/pkg/objectapi"
7+
"github.com/peterbourgon/ff/ffcli"
8+
"github.com/peterbourgon/ff/ffcli/examples/objectctl/pkg/objectapi"
99
)
1010

1111
// Config for the root command, including flags and types that should be

ffcli/examples/textctl/textctl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"fmt"
77
"os"
88

9-
"github.com/peterbourgon/ff/v3/ffcli"
9+
"github.com/peterbourgon/ff/ffcli"
1010
)
1111

1212
// textctl is a simple applications in which all commands are built up in func

0 commit comments

Comments
 (0)