Browse Source

Move pipeline configs to new config directory

feature/restructure-pipelines
Roman Zipp 3 years ago
parent
commit
7c7fa19661
  1. 0
      config/example.json
  2. 2
      pipeline.go

0
pipelines/example.json → config/example.json

2
pipeline.go

@ -142,7 +142,7 @@ func LoadPipelines() []IPipeline {
path, _ := os.Getwd() path, _ := os.Getwd()
err := filepath.Walk(path+"/pipelines", func(path string, info fs.FileInfo, err error) error {
err := filepath.Walk(path+"/config", func(path string, info fs.FileInfo, err error) error {
if err == nil && info.IsDir() == false { if err == nil && info.IsDir() == false {
fmt.Println(path) fmt.Println(path)
data, _ := os.ReadFile(path) data, _ := os.ReadFile(path)

Loading…
Cancel
Save