diff --git a/.gitmodules b/.gitmodules index e05280d..49329df 100644 --- a/.gitmodules +++ b/.gitmodules @@ -13,3 +13,6 @@ [submodule "core_modules/github.com/ash-shell/test"] path = core_modules/github.com/ash-shell/test url = https://github.com/ash-shell/test.git +[submodule "core_modules/github.com/ash-shell/env"] + path = core_modules/github.com/ash-shell/env + url = https://github.com/ash-shell/env.git diff --git a/ash b/ash index 7101788..d69bad3 100755 --- a/ash +++ b/ash @@ -284,6 +284,7 @@ Ash_import_core() { Ash__import "github.com/ash-shell/logger" Ash__import "github.com/ash-shell/yaml-parse" Ash__import "github.com/ash-shell/obj" + Ash__import "github.com/ash-shell/env" } ################################################# @@ -301,6 +302,9 @@ Ash_start() { # Importing the core Ash_import_core + # Load Env File + Env__load + # Updating Logger prefix Logger__set_prefix "Ash" diff --git a/core_modules/github.com/ash-shell/env b/core_modules/github.com/ash-shell/env new file mode 160000 index 0000000..d86468b --- /dev/null +++ b/core_modules/github.com/ash-shell/env @@ -0,0 +1 @@ +Subproject commit d86468bb3acf1ced62e7e95041a90b0fc12d606a diff --git a/core_modules/module_aliases.yaml b/core_modules/module_aliases.yaml index 7cb7f46..8a1b44b 100644 --- a/core_modules/module_aliases.yaml +++ b/core_modules/module_aliases.yaml @@ -3,3 +3,4 @@ logger: github.com/ash-shell/logger obj: github.com/ash-shell/obj yamlparse: github.com/ash-shell/yaml-parse test: github.com/ash-shell/test +env: github.com/ash-shell/env