Files
aitbc/dev/scripts/patch_cli_utils.py
oib ccedbace53 chore: remove configuration files and enhance blockchain explorer with advanced search, analytics, and export features
- Delete .aitbc.yaml.example CLI configuration template
- Delete .lycheeignore link checker exclusion rules
- Delete .nvmrc Node.js version specification
- Add advanced search panel with filters for address, amount range, transaction type, time range, and validator
- Add analytics dashboard with transaction volume, active addresses, and block time metrics
- Add Chart.js integration
2026-03-02 15:38:25 +01:00

22 lines
793 B
Python

with open("/home/oib/windsurf/aitbc/cli/aitbc_cli/utils/__init__.py", "r") as f:
content = f.read()
# Fix the output() function to accept a title keyword argument since it's used in many commands
content = content.replace(
"""def output(data: Any, format_type: str = "table"):""",
"""def output(data: Any, format_type: str = "table", title: str = None):"""
)
content = content.replace(
""" table = Table(show_header=False, box=None)""",
""" table = Table(show_header=False, box=None, title=title)"""
)
content = content.replace(
""" table = Table(box=None)""",
""" table = Table(box=None, title=title)"""
)
with open("/home/oib/windsurf/aitbc/cli/aitbc_cli/utils/__init__.py", "w") as f:
f.write(content)