Skip to content

Commit

Permalink
Merge pull request #165 from project-flogo/edit_plugin
Browse files Browse the repository at this point in the history
edit plugin
  • Loading branch information
skothari-tibco authored Jun 2, 2020
2 parents 44322a2 + e4d9bdc commit ba6501d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions plugin/pre_process.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package plugin

import (
"fmt"
"strings"

"github.com/project-flogo/cli/common"
"github.com/project-flogo/cli/util"
Expand All @@ -18,6 +19,7 @@ const (

// Operations to be downloaded.
var operations []string = []string{"cleaning", "common", "math", "nlp", "restructuring", "string_processing"}
var toInstall bool

type PreProcess struct{}

Expand All @@ -29,6 +31,15 @@ func (p *PreProcess) DoPreProcessing(project common.AppProject, options common.B
return err
}

//Check if the current project is using catalystml action
for key, _ := range currImports {
if strings.Contains(key, "github.com/project-flogo/catalystml-flogo") {
toInstall = true
}
}
if !toInstall {
return nil
}
// Build the Import path from the package name and the operations package name
for _, val := range operations {

Expand Down

0 comments on commit ba6501d

Please sign in to comment.