Env is an Ash module that loads a .env file in your current directory.
Env is part of the Ash core, so you can just start using it in your Ash modules. Env also automatically runs whenever Ash starts up to load your specified environment file.
To figure out what env file will be loaded when Ash starts up, run the following command:
ash env:get
To set the env file that will be loaded when Ash starts up, run the following command:
ash env:set $env_file_name
Where $env_file_name
is the name of the file you would like loaded.
There's no need to import this module to use its public interface, as it is imported in Ash core.
You can run the function Env__get_filename
to get the env filename that will be loaded when Ash starts up.
filename=$(Env__get_filename)
To set the env file that will be loaded when Ash starts up, run the following command:
Env__set_filename
To load the environment file in the current directory, you can run the following command:
Env__load