Skip to content

Commit

Permalink
Fix input flags
Browse files Browse the repository at this point in the history
  • Loading branch information
ytham committed Jun 21, 2024
1 parent 984bd3a commit 11999f3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/periodic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "create-axiom-client periodic test"
on:
schedule:
# Runs on the 18th minute of every hour (reduce scheduling conflicts)
- cron: '18 * * * *'
- cron: "18 * * * *"

env:
RPC_URL_11155111: ${{ secrets.RPC_URL_11155111 }}
Expand Down Expand Up @@ -75,8 +75,8 @@ jobs:
run: |
export PNPM_HOME="/home/runner/.local/share/pnpm"
export PATH="$PNPM_HOME:$PATH"
npm_config_yes=true npx create-axiom-client init -p axiom-app -s ${{ env.SCAFFOLD }} -m ${{ env.PKG }} -c 11155111
npm_config_yes=true npx create-axiom-client init -p axiom-app -s ${{ env.SCAFFOLD }} -m ${{ env.PKG }} -q samechain -c 11155111
- name: Write local .env file
working-directory: ./axiom-app
run: |
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:

- name: Initialize app
working-directory: ./axiom-init
run: node dist/index.js init -p app-nextjs -s nextjs -m npm -c 11155111
run: node dist/index.js init -p app-nextjs -s nextjs -m npm -q samechain -c 11155111

- name: Compile circuit
working-directory: ./axiom-init/app-nextjs
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:

- name: Initialize app
working-directory: ./axiom-init
run: node dist/index.js init -p app-nextjs -s nextjs -m yarn -c 11155111
run: node dist/index.js init -p app-nextjs -s nextjs -m yarn -q samechain -c 11155111

- name: Compile circuit
working-directory: ./axiom-init/app-nextjs
Expand Down Expand Up @@ -201,7 +201,7 @@ jobs:

- name: Initialize app
working-directory: ./axiom-init
run: node dist/index.js init -p app-nextjs -s nextjs -m pnpm -c 84532
run: node dist/index.js init -p app-nextjs -s nextjs -m pnpm -q samechain -c 84532

- name: Compile circuit
working-directory: ./axiom-init/app-nextjs
Expand Down Expand Up @@ -261,7 +261,7 @@ jobs:

- name: Initialize app
working-directory: ./axiom-init
run: node dist/index.js init -p app-script -s script -m npm -c 84532
run: node dist/index.js init -p app-script -s script -m npm -q samechain -c 84532

- name: Compile circuit
working-directory: ./axiom-init/app-script
Expand Down Expand Up @@ -323,7 +323,7 @@ jobs:

- name: Initialize app
working-directory: ./axiom-init
run: node dist/index.js init -p app-script -s script -m yarn -c 11155111
run: node dist/index.js init -p app-script -s script -m yarn -q samechain -c 11155111

- name: Compile circuit
working-directory: ./axiom-init/app-script
Expand Down Expand Up @@ -385,7 +385,7 @@ jobs:

- name: Initialize app
working-directory: ./axiom-init
run: node dist/index.js init -p app-script -s script -m pnpm -c 1
run: node dist/index.js init -p app-script -s script -m pnpm -q samechain -c 1

- name: Compile circuit
working-directory: ./axiom-init/app-script
Expand Down Expand Up @@ -444,7 +444,7 @@ jobs:

- name: Initialize app
working-directory: ./axiom-init
run: node dist/index.js init -p app-forge -s forge -m npm -c 1
run: node dist/index.js init -p app-forge -s forge -m npm -q samechain -c 1

- name: Compile circuit
working-directory: ./axiom-init/app-forge
Expand Down Expand Up @@ -500,7 +500,7 @@ jobs:

- name: Initialize app
working-directory: ./axiom-init
run: node dist/index.js init -p app-forge -s forge -m yarn -c 84532
run: node dist/index.js init -p app-forge -s forge -m yarn -q samechain -c 84532

- name: Compile circuit
working-directory: ./axiom-init/app-forge
Expand Down Expand Up @@ -554,7 +554,7 @@ jobs:

- name: Initialize app
working-directory: ./axiom-init
run: node dist/index.js init -p app-forge -s forge -m pnpm -c 11155111
run: node dist/index.js init -p app-forge -s forge -m pnpm -q samechain -c 11155111

- name: Compile circuit
working-directory: ./axiom-init/app-forge
Expand Down
7 changes: 5 additions & 2 deletions axiom-init/src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ export const setup = async (
if (!answers0.path || answers0.path === "") {
answers0.path = "axiom-quickstart";
}
answers0 = {
...answers0,
...options,
}

// Get queryType response and use it to determine which questions to ask next
let isCrosschain = false;
Expand Down Expand Up @@ -86,8 +90,7 @@ export const setup = async (
}
setupQuestions1 = setupQuestionsCrosschain;
}

let answers1 = await prompt(setupQuestions1)
let answers1 = await prompt(setupQuestions1);

let answers = {
...answers0,
Expand Down

0 comments on commit 11999f3

Please sign in to comment.