code: func (s *Action) listAll(ctx context.Context, l tree.Tree, limit int, flat, folders bool) error {
  	if flat {
  		listOver := l.List
  		if folders {
  			listOver = l.ListFolders
  		}
  		for _, e := range listOver(limit) {
  			fmt.Fprintln(stdout, e)
  		}
  		return nil
  	}
  
  	// we may need to redirect stdout for the pager support
  	so, buf := redirectPager(ctx, l)
  
  	fmt.Fprintln(so, l.Format(limit))
  	if buf != nil {
  		if err := s.pager(ctx, buf); err != nil {
  			return ExitError(ctx, ExitUnknown, err, "failed to invoke pager: %s", err)
  		}
  	}
  	return nil
  }
docs: // listAll will unconditionally list all entries, used if no filter is given