Enable pager for repo list output

This commit is contained in:
Mislav Marohnić 2021-02-27 15:05:11 +01:00
parent 2bdffc85e2
commit f75144dd1f

View file

@ -104,6 +104,11 @@ func listRun(opts *ListOptions) error {
return err
}
if err := opts.IO.StartPager(); err != nil {
fmt.Fprintf(opts.IO.ErrOut, "error starting pager: %v\n", err)
}
defer opts.IO.StopPager()
cs := opts.IO.ColorScheme()
tp := utils.NewTablePrinter(opts.IO)
now := opts.Now()