You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: stop_all.go
    path of file: ./repos/nanobox/processors/component
    
    the code of the file until where you have to start completion: package component

import (
	"github.com/jcelliott/lumber"

	"github.com/nanobox-io/nanobox/models"
	"github.com/nanobox-io/nanobox/util"
	"github.com/nanobox-io/nanobox/util/display"
)

// StopAll stops all app components
func StopAll(appModel *models.App) error {

	// get all the components that belong to this app
	comp
    
func StopAll(appModel *models.App) error {

	// get all the components that belong to this app
	componentModels, err := appModel.Components()
	if err != nil {
		lumber.Error("component:StopAll:models.App{ID:%s}.Components() %s", appModel.ID, err.Error())
		return util.ErrorAppend(err, "unable to retrieve components")
	}

	if len(componentModels) == 0 {
		return nil
	}

	display.OpenContext("Stopping components")
	defer display.CloseContext()

	// stop each component
	for _, componentModel := range componentModels {
		if err := Stop(componentModel); err != nil {
			return util.ErrorAppend(err, "unable to stop component(%s)", componentModel.Name)
		}
	}

	return nil
}