refactor: move app.json extraction up to core-post-extract

This commit is contained in:
Jose Diaz-Gonzalez
2022-12-29 01:24:40 -05:00
parent 173434ef34
commit 09eb0b2c8f
4 changed files with 118 additions and 32 deletions

View File

@@ -48,7 +48,7 @@ func GetAppjsonDirectory(appName string) string {
return common.GetAppDataDirectory("app-json", appName)
}
// GetAppjsonPath returns the path to a given app's extracted app.json file
// GetAppjsonPath returns the path to a given app's extracted app.json file for use by other plugins
func GetAppjsonPath(appName string) string {
return filepath.Join(GetAppjsonDirectory(appName), "app.json")
return getProcessSpecificAppJSONPath(appName)
}