Skip to content

Tool to create symbolic links in batches from a YAML file.

License

Notifications You must be signed in to change notification settings

LuqueDaniel/lnmc

Repository files navigation

lnmc

PyPI PyPI - Python Version PyPI - License Coverage Status Code style: black

Allows to create symbolic link in batches from a YAML file and consolidate them in a specific directory.

Install:

pip install lnmc

Usege:

lnmc addons.yml src/ destination/

Configuration File

lnmc as first argument needs a .yaml or .yml file. The directories, sub-directories and files that will be the target for symbolic links are specified in this file. For example.

reporting-engine:
  - report_xlsx
purchase-workflow:
  - purchase_landed_cost
pos:
  - pos_margin
partner-contact:
  - partner_vat_unique
  - base_location_nuts
  - base_location_geonames_import
  - base_location
mis-builder:
  - mis_builder
  - mis_builder_budget
# It will create symbolic links of all subdirectories and files
l10n-spain:

(Example of a typical Odoo project)

Development Install

git clone https://github.com/LuqueDaniel/lnmc.git
cd lnmc
python -m venv --prompt . .venv/
source .venv/bin/activate
pip install -e ".[dev]"