mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2026-08-13 12:33:07 +02:00
21 lines
533 B
Text
21 lines
533 B
Text
|
|
#!/usr/bin/env bash
|
||
|
|
#
|
||
|
|
# eclair-cli against the regtest fixture's eclair node.
|
||
|
|
#
|
||
|
|
# bin/e-cli getinfo
|
||
|
|
# bin/e-cli channels
|
||
|
|
# bin/e-cli createinvoice --amountMsat=1000000 --description=test
|
||
|
|
#
|
||
|
|
# The API password is passed explicitly because 'docker compose exec' does not
|
||
|
|
# read eclair's config for auth; it defaults to the fixture's throwaway value.
|
||
|
|
|
||
|
|
set -euo pipefail
|
||
|
|
|
||
|
|
cd "$(dirname "$0")/.."
|
||
|
|
# shellcheck disable=SC1091
|
||
|
|
source .env
|
||
|
|
|
||
|
|
exec docker compose exec -T eclair eclair-cli \
|
||
|
|
-p "${ECLAIR_API_PASSWORD:-rtldev}" \
|
||
|
|
"$@"
|