Coverage for src/mafw/devtools/cli/toolchain/__init__.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.15.0, created at 2026-07-26 09:13 +0000

1# Copyright 2026 European Union 

2# Author: Bulgheroni Antonio (antonio.bulgheroni@ec.europa.eu) 

3# SPDX-License-Identifier: EUPL-1.2 

4""" 

5Toolchain management CLI commands. 

6 

7This package provides the ``devtools toolchain`` Click command group and its 

8subcommands (``check``, ``update``, ``verify``, ``bootstrap``, ``list``). 

9The group-level ``--include-host`` / ``--exclude-host`` flags control whether 

10host-category tools participate in processing, while the :func:`common_options` 

11decorator provides repeatable ``-i`` / ``--include`` and ``-e`` / ``--exclude`` 

12options for per-tool name filtering. 

13 

14The default :class:`~mafw.devtools.toolchain.ToolRegistry` is 

15populated via :func:`~mafw.devtools.toolchain.default_registry.get_default_registry` 

16and stored in the Click context for access by subcommands. 

17""" 

18 

19from __future__ import annotations 

20 

21from mafw.devtools.cli.toolchain._group import common_options, toolchain 

22 

23__all__ = ['common_options', 'toolchain'] 

24 

25# Import subcommand modules to trigger their registration via @toolchain.command(). 

26# These imports MUST appear after the re-export above so that the toolchain group 

27# is available when subcommand modules reference it. 

28from mafw.devtools.cli.toolchain import bootstrap_cmd as bootstrap_cmd # noqa: E402, F401 

29from mafw.devtools.cli.toolchain import check_cmd as check_cmd # noqa: E402, F401 

30from mafw.devtools.cli.toolchain import list_cmd as list_cmd # noqa: E402, F401 

31from mafw.devtools.cli.toolchain import update_cmd as update_cmd # noqa: E402, F401 

32from mafw.devtools.cli.toolchain import verify_cmd as verify_cmd # noqa: E402, F401