cosmjs-util/packages/cli/run_examples.sh
Milan Steiner fab55d3807
Renamed cosmwasm-cli to cosmjs-cli (#1059)
* Renamed cosmwasm-cli to cosmjs-cli

* Fixed build error
2022-02-22 14:08:11 +01:00

20 lines
981 B
Bash
Executable File

#!/bin/bash
set -o errexit -o nounset -o pipefail
command -v shellcheck >/dev/null && shellcheck "$0"
if [ -n "${WASMD_ENABLED:-}" ]; then
yarn node ./bin/cosmjs-cli --init examples/cosmwasm.ts --code "process.exit(0)"
fi
if [ -n "${SIMAPP42_ENABLED:-}" ]; then
yarn node ./bin/cosmjs-cli --init examples/delegate.ts --code "process.exit(0)"
fi
yarn node ./bin/cosmjs-cli --init examples/faucet_addresses.ts --code "process.exit(0)"
yarn node ./bin/cosmjs-cli --init examples/generate_address.ts --code "process.exit(0)"
yarn node ./bin/cosmjs-cli --init examples/local_faucet.ts --code "process.exit(0)"
yarn node ./bin/cosmjs-cli --init examples/mask.ts --code "process.exit(0)"
yarn node ./bin/cosmjs-cli --init examples/multisig_address.ts --code "process.exit(0)"
if [ -n "${SIMAPP42_ENABLED:-}" ]; then
yarn node ./bin/cosmjs-cli --init examples/stargate.ts --code "process.exit(0)"
yarn node ./bin/cosmjs-cli --init examples/simulate.ts --code "process.exit(0)"
fi