code: func UpdatesWrite(ctx formatter.Context, availableUpdates []clitypes.Update) error {
  	render := func(format func(subContext formatter.SubContext) error) error {
  		for _, update := range availableUpdates {
  			updatesCtx := &updateContext{trunc: ctx.Trunc, u: update}
  			if err := format(updatesCtx); err != nil {
  				return err
  			}
  		}
  		return nil
  	}
  	updatesCtx := updateContext{}
  	updatesCtx.Header = map[string]string{
  		"Type":    updatesTypeHeader,
  		"Version": versionHeader,
  		"Notes":   notesHeader,
  	}
  	return ctx.Write(&updatesCtx, render)
  }
docs: // UpdatesWrite writes the context