change to normal folder seek
This commit is contained in:
6
utils.go
6
utils.go
@@ -49,7 +49,7 @@ func joinOutput(outputs ...string) string {
|
||||
}
|
||||
|
||||
func readAppModule(app, module string) AppModule {
|
||||
path := filepath.Join(".", "config", app, module)
|
||||
path := filepath.Join(configFolder(), app, module)
|
||||
name := module
|
||||
check := "SCRIPT"
|
||||
configPath := filepath.Join(path, "config.yml")
|
||||
@@ -73,7 +73,7 @@ func readAppModule(app, module string) AppModule {
|
||||
|
||||
func readApplication(folderName string) Application {
|
||||
name := folderName
|
||||
appFolder := filepath.Join(".", "config", folderName)
|
||||
appFolder := filepath.Join(configFolder(), folderName)
|
||||
configPath := filepath.Join(appFolder, "config.yml")
|
||||
if fileExists(configPath) {
|
||||
configF, err := os.ReadFile(configPath)
|
||||
@@ -100,7 +100,7 @@ func readApplication(folderName string) Application {
|
||||
}
|
||||
|
||||
func listApplications() []Application {
|
||||
entries, err := os.ReadDir("./config")
|
||||
entries, err := os.ReadDir(configFolder())
|
||||
if err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user