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


Keywords
linux, windows, devops, sysadmin, batches, symlink, command-line-tool, cli, command, python, shell
License
Other
Install
pip install lnmc==1.4.0

Documentation

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]"