Files
palladum-lightning/tests/plugins/multiline-help.py
Rusty Russell 6d142dfad2 pytest: add multiline help test.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2025-02-20 14:37:28 +10:30

18 lines
320 B
Python
Executable File

#!/usr/bin/env python3
from pyln.client import Plugin, Millisatoshi
plugin = Plugin()
@plugin.method("helpme")
def helpme(plugin, msat: Millisatoshi):
"""This is a message which consumes multiple lines and thus should
be well-formatted by lightning-cli help
"""
return {'help': msat}
plugin.run()