canopy icon indicating copy to clipboard operation
canopy copied to clipboard

feat(cli): add --rpc-url/--admin-url flags and fix --data-dir targeting

Open ezeike opened this issue 6 months ago • 0 comments

Summary

  • Fix --data-dir flag being ignored: moved initialization from init() to PersistentPreRunE so flags are parsed before config loads
  • Add --rpc-url and --admin-url flags to override node URLs from config at runtime

Test plan

  • [ ] canopy --data-dir /custom/path <cmd> uses the specified directory
  • [ ] canopy --rpc-url http://localhost:9000 <cmd> overrides config RPC URL
  • [ ] canopy --admin-url http://localhost:9001 <cmd> overrides config admin URL
  • [ ] Default behavior unchanged when flags are omitted

ezeike avatar May 12 '26 00:05 ezeike