code: func (s *Action) pager(ctx context.Context, buf io.Reader) error {
  	pager := os.Getenv("PAGER")
  	if pager == "" {
  		fmt.Fprintln(stdout, buf)
  		return nil
  	}
  
  	args, err := shellquote.Split(pager)
  	if err != nil {
  		return errors.Wrapf(err, "failed to split pager command")
  	}
  
  	cmd := exec.CommandContext(ctx, args[0], args[1:]...)
  	cmd.Stdin = buf
  	cmd.Stdout = os.Stdout
  	cmd.Stderr = os.Stderr
  
  	return cmd.Run()
  }
docs: // pager invokes the default pager with the given content