Skip to content

Commit

Permalink
Make v3 examples runnable on pkg.go.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewdale committed Sep 2, 2023
1 parent 7b25ef5 commit 9adbe9a
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 9adbe9a

Please sign in to comment.