示例#1
0
def main():
    plugin = Plugin(
        name="nested-calls",
        version=__version__,
        description="A plugin that calls commands on itself",
    )
    plugin.client = NestedCallClient()
    plugin.run()
示例#2
0
def main():
    plugin = Plugin(
        name="echo",
        version=__version__,
        description="Annoying plugin that just repeats stuff",
    )
    plugin.client = EchoClient()
    plugin.run()
示例#3
0
def main():
    plugin = Plugin(
        name="parent",
        version=__version__,
        description="Issues commands to a different namespace",
    )
    plugin.client = ParentClient()
    plugin.run()
示例#4
0
def main():
    plugin = Plugin(
        name="sleeper",
        version=__version__,
        description="A really lazy plugin",
    )
    plugin.client = SleeperClient()
    plugin.run()
示例#5
0
def main():
    plugin = Plugin(
        name="echo-sleeper",
        version=__version__,
        description="A plugin that's annoying AND lazy",
    )
    plugin.client = EchoSleeperClient()
    plugin.run()
示例#6
0
def main():
    plugin = Plugin(
        name="{{ cookiecutter.plugin_name }}",
        version=__version__,
        description="{{ cookiecutter.description }}",
    )
    plugin.client = Client()
    plugin.run()
示例#7
0
def main():
    plugin = Plugin(
        name="error",
        version=__version__,
        description="All commands end in errors. There is no hope.",
    )
    plugin.client = ErrorClient()
    plugin.run()
示例#8
0
def main():
    plugin = Plugin(
        name="custom-display",
        version=__version__,
        description="Plugin that likes to play pretend",
    )
    plugin.client = CustomDisplayClient()
    plugin.run()
示例#9
0
def main():
    plugin = Plugin(
        name="dynamic",
        version=__version__,
        description="Plugin that repeats very specific stuff",
    )
    plugin.client = DynamicClient()
    plugin.run()
示例#10
0
def main():
    plugin = Plugin(
        name="sleeper-solo",
        version=__version__,
        description="A singularly lazy plugin",
        max_concurrent=1,
    )
    plugin.client = SleeperClient()
    plugin.run()
示例#11
0
def main():
    plugin = Plugin(
        name="dynamic",
        version=__version__,
        description="Plugin that repeats very specific stuff",
    )

    # Change the deferred choices
    DynamicClient.DEFERRED_CHOICES = ["x", "y", "z"]

    plugin.client = DynamicClient()
    plugin.run()
示例#12
0
def main():
    plugin = Plugin(
        name="complex",
        version=__version__,
        description="Plugin that shows all the cool things Beergarden can do",
    )

    parser = ArgumentParser()
    parser.add_argument("host")
    parser.add_argument("port")

    # Use parse_known_args to work with brewtils CLI arguments
    parsed, _ = parser.parse_known_args(sys.argv[1:])
    config = vars(parsed)

    plugin.client = ComplexClient(config["host"], config["port"])
    plugin.run()
示例#13
0
def main():
    p = Plugin(name="file-bytes", version=__version__)
    p.client = FileBytesClient()
    p.run()
示例#14
0
def main():
    p = Plugin(name="deploy", version=__version__)
    p.client = DeployClient()
    p.run()