func CreateMockExecCommand(c *MockECSAPI) *ExecCommand {
	e := &ExecCommand{
		cmd:      make(chan string, 1),
		err:      make(chan error, 1),
		done:     make(chan bool),
		client:   c,
		region:   "eu-west-1",
		endpoint: "ecs.eu-west-1.amazonaws.com",
	}
	return e
}
CreateMockExecCommand initialises a new ExecCommand struct and takes a MockClient
as an argument - only used in unit tests.
package cli
import (
	"os"
	"testing"
	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/service/ecs"
	"github.com/aws/aws-sdk-go/service/ecs/ecsiface"
	"github.com/stretchr/testify/assert"
)
func init() {
	os.Setenv("AWS_DEFAULT_REGION", "eu-west-1")
}
type MockECSAPI struct {
	ecsiface.ECSAPI     
	ListClustersMock   func(input *ecs.ListClustersInput) (*ecs.ListClustersOutput, error)
	ListServicesMock   func(input *ecs.ListServicesInput) (*ecs.ListServicesOutput, error)
	ListTasksMock      func(input *ecs.ListTasksInput) (*ecs.ListTasksOutput, error)
	DescribeTasksMock  func(input *ecs.DescribeTasksInput) (*ecs.DescribeTasksOutput, error)
	ExecuteCommandMock func(input *ecs.ExecuteCommandInput) (*ecs.ExecuteCommandOutput, error)
}
func (m *MockECSAPI) ListClusters(input *ecs.ListClustersInput) (*ecs.ListClustersOutput, error) {  
	if m.ListClustersMock != nil {
		return m.ListClustersMock(input)  
	}
	return nil, nil  
}
func (m *MockECSAPI) ListServices(input *ecs.ListServicesInput) (*ecs.ListServicesOutput, error) {  
	if m.ListServicesMock != nil {
		return m.ListServicesMock(input)  
	}
	return nil, nil  
}
func (m *MockECSAPI) ListTasks(input *ecs.ListTasksInput) (*ecs.ListTasksOutput, error) {  
	if m.ListTasksMock != nil {
		return m.ListTasksMock(input)  
	}
	return nil, nil  
}
func (m *MockECSAPI) DescribeTasks(input *ecs.DescribeTasksInput) (*ecs.DescribeTasksOutput, error) {  
	if m.DescribeTasksMock != nil {
		return m.DescribeTasksMock(input)  
	}
	return nil, nil  
}
func (m *MockECSAPI) ExecuteCommand(input *ecs.ExecuteCommandInput) (*ecs.ExecuteCommandOutput, error) {  
	if m.ExecuteCommandMock != nil {
		return m.ExecuteCommandMock(input)  
	}
	return nil, nil  
}