Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Definition of environment and implementation of first plugins #11

Merged
merged 12 commits into from
Aug 26, 2022

Conversation

neomatamune
Copy link
Member

Adds the definition of an Environment class that contains a Configuration and a WorkingDir (new name for Solution)

Adds an override of Configuration and WorkingDir via environment variables allowing easier scripting of babylon commands

Moved group babylon dev to plugin dev_tools making the addition of those commands optional, and only babylon or plugins developers should activate it.

Moved group of commands v0 to a plugin v0 allowing to keep the example of connections to the multiple microsoft services, but without adding those commands directly in babylon (plugin should be removed between 1.0.0 and 2.0.0)

Overall cleaning of the documentation

plugins/dev_tools/commands/rename_command.py Show resolved Hide resolved
plugins/dev_tools/commands/rename_command.py Show resolved Hide resolved
plugins/dev_tools/commands/rename_command.py Show resolved Hide resolved
plugins/dev_tools/commands/rename_command.py Show resolved Hide resolved
plugins/dev_tools/commands/rename_command.py Show resolved Hide resolved
Babylon/main.py Outdated Show resolved Hide resolved
Babylon/utils/configuration.py Outdated Show resolved Hide resolved
Babylon/utils/configuration.py Outdated Show resolved Hide resolved
Babylon/groups/config/groups/deployment/commands/select.py Outdated Show resolved Hide resolved
Babylon/groups/config/groups/platform/commands/select.py Outdated Show resolved Hide resolved
- `--config` : takes a folder that will be used as config folder instead of the system one
- `--deploy` : takes a yaml file that will be used as deployment file
- `--platform` : takes a yaml file that will be used as platform file
Environment contains a Configuration and a WorkingDir

Updated most calls to use the correct elements

Now dry_run is part of the Environment

Override of config and WorkingDir is available via environment variables
use `click.Context.find_object` to get the environment and extracting the working dir from there instead
Can be added with command `babylon config plugin add plugins/dev_tools` in Babylon folder
removed check for overridden before operations on config
@lalepee lalepee merged commit 980a5c9 into main Aug 26, 2022
@lalepee lalepee deleted the configuration_override branch August 26, 2022 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants