helpme: new plugin.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-06-23 10:54:56 +09:30
committed by Christian Decker
parent 6cebe21ff7
commit 5bb3061ade
4 changed files with 1068 additions and 0 deletions

9
helpme/Makefile Normal file
View File

@@ -0,0 +1,9 @@
#! /usr/bin/make
check: flake8 pytest
flake8:
flake8 --ignore=E501,W503 helpme.py
pytest:
pytest helpme.py

8
helpme/README.md Normal file
View File

@@ -0,0 +1,8 @@
# Helpme plugin for c-lightning
This plugin is designed to walk you through setting up a fresh
c-lightning node, offering advice for common problems.
## Example Usage
`lightning-cli helpme` will describe various topics.

1049
helpme/helpme.py Executable file

File diff suppressed because it is too large Load Diff

View File

@@ -207,6 +207,8 @@ def summary(plugin):
s += c[3][0:32] s += c[3][0:32]
reply['channels'].append(s) reply['channels'].append(s)
# Make modern lightning-cli format this human-readble by default!
reply['format-hint'] = 'simple'
return reply return reply