add sndev payinvoice
This commit is contained in:
parent
e824261143
commit
714aecc477
|
@ -42,11 +42,6 @@ OPENSEARCH_PASSWORD=
|
|||
OPENSEARCH_INDEX=item
|
||||
OPENSEARCH_MODEL_ID=
|
||||
|
||||
#######################################################
|
||||
# WALLET / OPTIONAL #
|
||||
# if you want to work with payments you'll need these #
|
||||
#######################################################
|
||||
|
||||
# lnurl ... you'll need a tunnel to localhost:3000 for these
|
||||
LNAUTH_URL=
|
||||
LNWITH_URL=
|
||||
|
|
18
sndev
18
sndev
|
@ -4,6 +4,10 @@ docker__compose() {
|
|||
CURRENT_UID=$(id -u) CURRENT_GID=$(id -g) command docker compose --env-file .env.sndev "$@"
|
||||
}
|
||||
|
||||
docker__exec() {
|
||||
exec command docker exec "$@"
|
||||
}
|
||||
|
||||
sndev__start() {
|
||||
if [ ! -x "$(command -v docker-compose)" ]; then
|
||||
echo "docker compose is not installed"
|
||||
|
@ -31,6 +35,11 @@ sndev__delete() {
|
|||
docker__compose down --volumes --remove-orphans
|
||||
}
|
||||
|
||||
sndev__payinvoice() {
|
||||
shift
|
||||
docker__exec -u lnd stacker_lnd lncli payinvoice --force "$@"
|
||||
}
|
||||
|
||||
sndev__help() {
|
||||
if [ $# -eq 3 ]; then
|
||||
call "sndev__$1__$2__$3" "$@"
|
||||
|
@ -43,10 +52,11 @@ USAGE
|
|||
$ sndev [COMMAND]
|
||||
|
||||
COMMANDS
|
||||
start start env
|
||||
stop stop env
|
||||
delete delete env
|
||||
help display help for sndev
|
||||
start start env
|
||||
stop stop env
|
||||
delete delete env
|
||||
payinvoice pay invoice to sn
|
||||
help display help for sndev
|
||||
"
|
||||
echo "$help"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue