func CreateClients() (*GlobalClients, error) {
	factory := cmd.NewFactory()

	slackAppClient, ns, err := createSlackAppClient(factory)
	if err != nil {
		return nil, err
	}

	kubeClient, ns, err := factory.CreateKubeClient()
	if err != nil {
		return nil, err
	}

	jxClient, ns, err := factory.CreateJXClient()
	if err != nil {
		return nil, err
	}

	commonOptions := opts.NewCommonOptionsWithFactory(factory)

	return &GlobalClients{
		SlackAppClient:    slackAppClient,
		Namespace:         ns,
		KubeClient:        kubeClient,
		JXClient:          jxClient,
		Factory:           factory,
		CommonOptions:     &commonOptions,
		slackClientHelper: &slackWrapper{},
	}, nil
}
// CreateClients creates the default global clients
CreateClients creates the default global clients
// CreateClients creates the default global clients
func CreateClients() (*GlobalClients, error) {
	factory := cmd.NewFactory()
	slackAppClient, ns, err := createSlackAppClient(factory)
	if err != nil {
		return nil, err
	}
	kubeClient, ns, err := factory.CreateKubeClient()
	if err != nil {
		return nil, err
	}
	jxClient, ns, err := factory.CreateJXClient()
	if err != nil {
		return nil, err
	}
	commonOptions := opts.NewCommonOptionsWithFactory(factory)
	return &GlobalClients{
		SlackAppClient:    slackAppClient,
		Namespace:         ns,
		KubeClient:        kubeClient,
		JXClient:          jxClient,
		Factory:           factory,
		CommonOptions:     &commonOptions,
		slackClientHelper: &slackWrapper{},
	}, nil
}
func CreateClients ( ) ( * GlobalClients , error ) { factory := cmd . NewFactory ( ) slackAppClient , ns , err := createSlackAppClient ( factory ) if err != nil { return nil , err } kubeClient , ns , err := factory . CreateKubeClient ( ) if err != nil { return nil , err } jxClient , ns , err := factory . CreateJXClient ( ) if err != nil { return nil , err } commonOptions := opts . NewCommonOptionsWithFactory ( factory ) return & GlobalClients { SlackAppClient : slackAppClient , Namespace : ns , KubeClient : kubeClient , JXClient : jxClient , Factory : factory , CommonOptions : & commonOptions , slackClientHelper : & slackWrapper { } , } , nil }
CreateClients creates the default global clients
CreateClients creates the default global clients