avocado-framework/avocado

View on GitHub
examples/plugins/cli-cmd/hello_priority/hello_priority.py

Summary

Maintainability
A
0 mins
Test Coverage
from avocado.core.extension_manager import PluginPriority
from avocado.core.output import LOG_UI
from avocado.core.plugin_interfaces import CLICmd


class HelloWorld(CLICmd):

    name = "hello"
    description = "The classical Hello World! plugin example."
    priority = PluginPriority.HIGH

    def run(self, config):
        LOG_UI.info(self.description)