Skip to content

Commit

Permalink
return to pipes
Browse files Browse the repository at this point in the history
  • Loading branch information
akarve committed Jun 10, 2024
1 parent 9c705c1 commit 53d9ea6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ test-ci::

test-dist:: clean build install-dist test-readme

REDIRECT_OUTPUT ?= > /dev/null
test-readme::
bash test-readme.sh > /dev/null
bash test-readme.sh $(REDIRECT_OUTPUT)

push:: test-fast git-off-main git-no-unsaved
@branch=$$(git symbolic-ref --short HEAD); \
Expand Down
31 changes: 19 additions & 12 deletions test-readme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,29 @@
set -e

MNEMONIC="elder major green sting survey canoe inmate funny bright jewel anchor volcano"
XPRV="xprv9s21ZrQH143K46aCaxAxmT97r6rx9XBFf1gjWTi65Eb3QHjEpuvobGPpXYSyoQqQw5SQhrZpwFKVRSjrFjKDs4shbu7BwTXfVaPV8yF2gc8"

poetry run bipsea --version

poetry run bipsea --help
poetry run bipsea mnemonic --help
poetry run bipsea validate --help
poetry run bipsea xprv --help
poetry run bipsea derive --help
poetry run bipsea mnemonic -t jpn -n 15
poetry run bipsea mnemonic -t eng -n 12 --pretty
poetry run bipsea validate -f free -m "123456123456123456"
poetry run bipsea validate -f free -m @"$(cat input.txt)"
poetry run bipsea validate -m "$MNEMONIC" | poetry run bipsea xprv
poetry run bipsea xprv -m "$MNEMONIC"
poetry run bipsea derive -x "$XPRV" -a mnemonic -t jpn -n 12
poetry run bipsea derive -x "$XPRV" -a mnemonic -t jpn -n 12 -i 1
poetry run bipsea derive -x "$XPRV" -a drng -n 1000
poetry run bipsea derive -x "$XPRV" -a dice -n 10 -s 6
poetry run bipsea derive -x "$XPRV" -a dice -n 6

poetry run bipsea mnemonic | poetry run bipsea validate | poetry run bipsea xprv | poetry run bipsea derive -a mnemonic -n 12

poetry run bipsea mnemonic -t spa -n 12 | poetry run bipsea validate -f spa

poetry run bipsea mnemonic | poetry run bipsea validate | poetry run bipsea xprv

poetry run bipsea validate -f free -m "123456123456123456" | poetry run bipsea xprv

poetry run bipsea validate -f free -m "$(cat input.txt)"

poetry run bipsea validate -m "$MNEMONIC" | poetry run bipsea xprv | poetry run bipsea derive -a base85

poetry run bipsea validate -m "$MNEMONIC" | poetry run bipsea xprv | poetry run bipsea derive -a mnemonic -t jpn -n 12

poetry run bipsea validate -m "$MNEMONIC" | poetry run bipsea xprv | poetry run bipsea derive -a drng -n 1000

poetry run bipsea validate -m "$MNEMONIC" | poetry run bipsea xprv | poetry run bipsea derive -a dice -n 100 -s 6

0 comments on commit 53d9ea6

Please sign in to comment.