Skip to content

Comments

feat: add "iapp chain select" command#268

Merged
PierreJeanjacquot merged 6 commits intomainfrom
feat/chain-select
Feb 19, 2026
Merged

feat: add "iapp chain select" command#268
PierreJeanjacquot merged 6 commits intomainfrom
feat/chain-select

Conversation

@PierreJeanjacquot
Copy link
Member

changes

add iapp chain select <name> command to update the project default chain

image

@cursor
Copy link

cursor bot commented Feb 19, 2026

You have run out of free Bugbot PR reviews for this billing cycle. This will reset on March 10.

To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new CLI subcommand to set the project’s defaultChain in iapp.config.json, along with tests to validate config defaults and the new selection behavior.

Changes:

  • Add iapp chain select <chainName> command wired into the yargs CLI.
  • Implement chainSelect command to update defaultChain in the project config (after locating project root).
  • Extend CLI tests with config-reading helper and new chain select test cases.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
cli/test/test-utils.ts Adds readIAppConfig(projectDir) helper to read iapp.config.json from tests.
cli/test/iapp.test.ts Adds assertions for init-generated config defaults and adds chain select tests.
cli/src/index.ts Registers new chain select command with SUPPORTED_CHAINS choices.
cli/src/cmd/chain-select.ts Implements command logic to update and persist defaultChain in config.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@PierreJeanjacquot PierreJeanjacquot merged commit 87b1796 into main Feb 19, 2026
5 checks passed
@PierreJeanjacquot PierreJeanjacquot deleted the feat/chain-select branch February 19, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants