minitrino.cmd.modules module#

Commands for displaying and filtering Minitrino module metadata.

minitrino.cmd.modules.filter_modules(ctx: MinitrinoContext, modules: list[str], module_type: str | None) dict[str, dict][source][source]#

Filter the given modules by the specified type.

Parameters:
  • modules (list[str]) – A list of modules to filter.

  • module_type (str, optional) – Optional module type to match against.

Returns:

A dictionary of filtered modules and their metadata.

Return type:

dict[str, dict]

minitrino.cmd.modules.log_info(ctx: MinitrinoContext, module_name: str, module_metadata: dict) None[source][source]#

Log module metadata to the terminal.

Parameters:
  • ctx (MinitrinoContext) – The current Minitrino context.

  • module_name (str) – Name of the module being logged.

  • module_metadata (dict) – Metadata associated with the module.