Skip to content

Commit

Permalink
feat(main): add dotenv_filename and secrets_dir parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed Jul 31, 2023
1 parent 3ddbc66 commit 40e19e0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/hyfi/main/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ def initialize_global_hyfi(
plugins: Optional[List[str]] = None,
user_config_path: Optional[str] = None,
config_dirname: Optional[str] = None,
dotenv_filename: Optional[str] = None,
secrets_dir: Optional[str] = None,
**kwargs,
) -> None:
"""
Initializes the global HyFI instance.
Expand All @@ -133,13 +136,19 @@ def initialize_global_hyfi(
plugins: A list of plugins to load. e.g. `["hyfi.conf"]`
user_config_path: Path to the user configuration directory. e.g. `./config`
config_dirname: Name of the configuration directory. e.g. `conf`
dotenv_filename: Name of the dotenv file. e.g. `.env`
secrets_dir: Name of the secrets directory. e.g. `secrets`
**kwargs: Additional arguments to be set as attributes.
"""
global_hyfi.initialize(
package_path=package_path,
version=version,
plugins=plugins,
user_config_path=user_config_path,
config_dirname=config_dirname,
dotenv_filename=dotenv_filename,
secrets_dir=secrets_dir,
**kwargs,
)

@staticmethod
Expand Down

0 comments on commit 40e19e0

Please sign in to comment.