nmk_base.helpers

Python module for nmk-base helper tasks.

Classes

InfoBuilder

Common implementation for information display tasks

VersionBuilder

Builder implementation for version task

HelpBuilder

Builder implementation for help task

TaskListBuilder

Builder implementation for tasks task

Module Contents

class nmk_base.helpers.InfoBuilder(model: nmk.model.model.NmkModel)

Bases: nmk.model.builder.NmkTaskBuilder

Common implementation for information display tasks

display_info(info: dict[str, str])

Iterate on information dictionnary content, and display it with aligned colons

Parameters:

info – Information dictionnary

class nmk_base.helpers.VersionBuilder(model: nmk.model.model.NmkModel)

Bases: InfoBuilder

Builder implementation for version task

build(plugins: dict[str, str])

Build logic for version task: iterate on provided plugins version map and display them.

Parameters:

plugins – Map of plugins versions

class nmk_base.helpers.HelpBuilder(model: nmk.model.model.NmkModel)

Bases: InfoBuilder

Builder implementation for help task

build(links: dict[str, str])

Build logic for help task: iterate on provided plugins help links map and display them.

Parameters:

links – Map of plugins help links

class nmk_base.helpers.TaskListBuilder(model: nmk.model.model.NmkModel)

Bases: InfoBuilder

Builder implementation for tasks task

build()

Build logic for tasks task: iterate on build model tasks, and display them (with their emoji and description text)