Skip to content

Commit

Permalink
add env
Browse files Browse the repository at this point in the history
  • Loading branch information
saleel committed Dec 13, 2024
1 parent afb1098 commit 53fc93a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aztec-up/bin/aztec-wallet
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ set -euo pipefail
export SKIP_PORT_ASSIGNMENT=1
export WALLET_DATA_DIRECTORY=$(dirname $0)/wallet-data
export ENV_VARS_TO_INJECT="WALLET_DATA_DIRECTORY SSH_AUTH_SOCK"
export BB_BINARY_PATH=$HOME/.bb/bb
export BB_WORKING_DIRECTORY=$HOME/.bb-workdir

mkdir -p $BB_WORKING_DIRECTORY
mkdir -p $WALLET_DATA_DIRECTORY

$(dirname $0)/.aztec-run aztecprotocol/cli-wallet $@
10 changes: 10 additions & 0 deletions yarn-project/cli-wallet/src/bin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,16 @@ async function main() {
.env('AZTEC_NODE_URL')
.default(`http://${LOCALHOST}:8080`),
)
.addOption(
new Option('-b, --bb-binary-path <string>', 'Path to the BB binary')
.env('BB_BINARY_PATH')
.default(`$HOME/.bb/bb`),
)
.addOption(
new Option('-w, --bb-working-directory <string>', 'Path to the BB working directory')
.env('BB_WORKING_DIRECTORY')
.default(`$HOME/.bb-workdir`),
)
.hook('preSubcommand', async command => {
const { dataDir, remotePxe, nodeUrl } = command.optsWithGlobals();

Expand Down

0 comments on commit 53fc93a

Please sign in to comment.