Skip to content

Commit

Permalink
Merge pull request #1812 from matthewdale/make-examples-runnable
Browse files Browse the repository at this point in the history
Make v3 examples runnable on pkg.go.dev
  • Loading branch information
dearchap authored Sep 13, 2023
2 parents 7b25ef5 + 9adbe9a commit a8de551
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import (
"os"
"time"

"github.com/urfave/cli/v3"
// Alias the package import to make the examples runnable on pkg.go.dev.
//
// See issue #1811.
cli "github.com/urfave/cli/v3"
)

func ExampleCommand_Run() {
Expand Down

0 comments on commit a8de551

Please sign in to comment.