Extending with your plugins
Table of contents
In order to use the CLI, you need to install the flamapy basic package
It’s recommended to use a virtual environment (venv) for installation to avoid conflicts with other packages. Here’s how you can set it up:
python -m venv flamapyenv && source flamapyenv/bin/activate
Install the distribution:
pip install flamapy
Create your own plugin
Let’s take as an example that we want to develop a plugin for OVM (Orthogonal Variability Model)
We go to the core
repository of
flamapy
and create a directory for the metamodel:
cd core && mkdir ./ovm_metamodel
We use the flamapy
CLI to generate the new plugin:
flamapy generate_plugin./ovm_metamodel ovm ovm
This will populate the skeleton to create your plugin.