Skip to content

Commit

Permalink
docs: add elapsed middleware to an example (#212)
Browse files Browse the repository at this point in the history
refs #206
  • Loading branch information
caarlos0 authored Jan 4, 2024
1 parent 54e6a3d commit f3d7e48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/pwd-banner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/charmbracelet/log"
"github.com/charmbracelet/ssh"
"github.com/charmbracelet/wish"
"github.com/charmbracelet/wish/elapsed"
"github.com/charmbracelet/wish/logging"
)

Expand Down Expand Up @@ -42,6 +43,7 @@ func main() {
h(s)
}
},
elapsed.Middleware(),
logging.Middleware(),
),
)
Expand Down

0 comments on commit f3d7e48

Please sign in to comment.