Skip to content

Commit be1dfdd

Browse files
Refresh demos
1 parent 4f86bb0 commit be1dfdd

7 files changed

Lines changed: 3 additions & 2 deletions

File tree

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,15 @@ linters:
3232
- maintidx # This is just the inverse of complexity... which is cyclop
3333
- nestif # cyclop does this
3434
- nlreturn # Similar to wsl, I think best left to judgement
35+
- noinlineerr # Inline errors are fine
3536
- nonamedreturns # Named returns are often helpful, it's naked returns that are the issue
3637
- paralleltest # I've never had Go tests take longer than a few seconds, it's fine
3738
- thelper # Lots of false positives in here due to the way I do table tests
3839
- unparam # gopls is better and more subtle
3940
- varnamelen # Lots of false positives of things that are fine
4041
- wrapcheck # Not every error must be wrapped
4142
- wsl # Very aggressive, some of this I like but tend to do anyway
43+
- wsl_v5 # Very aggressive, some of this I like but tend to do anyway
4244

4345
exclusions:
4446
presets:

Taskfile.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ version: "3"
44

55
vars:
66
COV_DATA: coverage.out
7-
PACKAGE: github.com/FollowTheProcess/cli
87

98
tasks:
109
default:

docs/img/demo.png

295 Bytes
Loading

docs/img/namedargs.gif

60 Bytes
Loading

docs/img/quickstart.gif

762 Bytes
Loading

docs/img/subcommands.gif

290 Bytes
Loading

examples/cover/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func main() {
2020
cli.Example("Do a thing", "demo thing --count"),
2121
cli.Flag(&count, "count", 'c', 0, "Count the thing"),
2222
cli.Run(func(cmd *cli.Command, args []string) error {
23-
fmt.Fprintf(cmd.Stdout(), "Hello from demo")
23+
fmt.Fprintln(cmd.Stdout(), "Hello from demo")
2424
return nil
2525
}),
2626
)

0 commit comments

Comments
 (0)