Skip to content

Commit

Permalink
Add CLI binary proxies (getumbrel#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds authored Aug 19, 2020
1 parent cc3cd89 commit 96f5ef5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bin/bitcoin-cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

set -euo pipefail

UMBREL_ROOT="$(readlink -f $(dirname "${BASH_SOURCE[0]}")/..)"

result=$(docker-compose --file "${UMBREL_ROOT}/docker-compose.yml" exec bitcoin bitcoin-cli $@)

# We need to echo with quotes to preserve output formatting
echo "$result"
10 changes: 10 additions & 0 deletions bin/lncli
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

set -euo pipefail

UMBREL_ROOT="$(readlink -f $(dirname "${BASH_SOURCE[0]}")/..)"

result=$(docker-compose --file "${UMBREL_ROOT}/docker-compose.yml" exec lnd lncli $@)

# We need to echo with quotes to preserve output formatting
echo "$result"

0 comments on commit 96f5ef5

Please sign in to comment.