mc_plugin_helper.cli module#

Module for CLI commands.

_find_plugin_in_list(plugin_name, plugins)[source]#

Found plugin in list, by its name.

Parameters
  • plugin_name (str) – Plugin name of plugin which we try to find.

  • plugins (List[Plugin]) – List of plugins, where we need to find.

Return type

Optional[Plugin]

Returns

Plugin object, or None if we didn’t find anything.

class CLI[source]#

Bases: object

Class for CLI interface. Do not forget add commands to __main__.py!

check(*args, **kwargs) = <Command check>#
class NiceEcho[source]#

Bases: object

Class for Nice Echo some info, to console.

static nice_echo_plugin(plugin)[source]#

Nice echo one plugin.

Parameters

plugin (Plugin) – Plugin object with information about it.

Return type

None

static nice_echo_all_plugins(plugins)[source]#

Nice echo all plugins, from a list.

Parameters

plugins (List[Plugin]) – List with plugins objects with information about it.

Return type

None