Standardize command module docstrings and clean up imports
Some checks failed
CLI Tests / test-cli (push) Has started running
Cross-Node Transaction Testing / transaction-test (push) Successful in 2s
Deploy to Testnet / deploy-testnet (push) Successful in 1m9s
Documentation Validation / validate-docs (push) Failing after 9s
Documentation Validation / validate-policies-strict (push) Successful in 4s
Multi-Node Stress Testing / stress-test (push) Successful in 3s
Node Failover Simulation / failover-test (push) Successful in 2s
Security Scanning / security-scan (push) Successful in 29s
Some checks failed
CLI Tests / test-cli (push) Has started running
Cross-Node Transaction Testing / transaction-test (push) Successful in 2s
Deploy to Testnet / deploy-testnet (push) Successful in 1m9s
Documentation Validation / validate-docs (push) Failing after 9s
Documentation Validation / validate-policies-strict (push) Successful in 4s
Multi-Node Stress Testing / stress-test (push) Successful in 3s
Node Failover Simulation / failover-test (push) Successful in 2s
Security Scanning / security-scan (push) Successful in 29s
- Update all command module docstrings to consistent format ending with "for AITBC CLI" - Remove unused imports (json, httpx, pydantic) from multiple command modules - Reorder imports to group utils imports together - Change sys.path in click_cli.py from /opt/aitbc to /opt/aitbc/cli - Fix relative imports in cross_chain.py and ipfs.py to use .config
This commit is contained in:
@@ -7,8 +7,8 @@ Separate entry point for Click-based commands (not parser/handler architecture)
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
# Add /opt/aitbc to Python path for shared modules
|
||||
sys.path.insert(0, str(Path("/opt/aitbc")))
|
||||
# Add /opt/aitbc/cli to Python path for commands and utils
|
||||
sys.path.insert(0, str(Path("/opt/aitbc/cli")))
|
||||
|
||||
import click
|
||||
|
||||
|
||||
@@ -2,13 +2,13 @@ import os
|
||||
import subprocess
|
||||
import sys
|
||||
import uuid
|
||||
from utils import output, error, success, warning
|
||||
import click
|
||||
import httpx
|
||||
from pydantic import BaseModel
|
||||
|
||||
@click.group(name='ai')
|
||||
def ai_group():
|
||||
"""AI marketplace commands."""
|
||||
"""AI marketplace commands for AITBC CLI"""
|
||||
pass
|
||||
|
||||
@ai_group.command()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""Arbitrage commands for AITBC CLI"""
|
||||
"""Arbitrage trading commands for AITBC CLI"""
|
||||
|
||||
import click
|
||||
import json
|
||||
import httpx
|
||||
from utils import output, error, success, warning
|
||||
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ from utils.kyc_aml_providers import submit_kyc_verification, check_kyc_status, p
|
||||
|
||||
@click.group()
|
||||
def compliance():
|
||||
"""Compliance and regulatory management commands"""
|
||||
"""Compliance and regulatory management commands for AITBC CLI"""
|
||||
pass
|
||||
|
||||
@compliance.command()
|
||||
|
||||
@@ -4,7 +4,7 @@ import click
|
||||
import httpx
|
||||
import json
|
||||
from typing import Optional
|
||||
from config import get_config
|
||||
from .config import get_config
|
||||
from utils import success, error, output
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Database commands for AITBC CLI"""
|
||||
"""Database service commands for AITBC CLI"""
|
||||
|
||||
import click
|
||||
import json
|
||||
from utils import output, error, success, warning
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Edge computing commands for AITBC CLI"""
|
||||
|
||||
import click
|
||||
import json
|
||||
from utils import output, error, success, warning
|
||||
|
||||
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
"""Governance commands for AITBC CLI"""
|
||||
"""Governance proposals and voting commands for AITBC CLI"""
|
||||
|
||||
import click
|
||||
import httpx
|
||||
import json
|
||||
from utils import output, error, success, warning
|
||||
import os
|
||||
import time
|
||||
from pathlib import Path
|
||||
from typing import Optional
|
||||
from datetime import datetime, timedelta
|
||||
from utils import output, error, success
|
||||
|
||||
|
||||
GOVERNANCE_DIR = Path.home() / ".aitbc" / "governance"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
"""IPFS storage and retrieval commands for AITBC CLI"""
|
||||
|
||||
import click
|
||||
import json
|
||||
from .config import get_config
|
||||
from utils import output, error, success, warning
|
||||
from pathlib import Path
|
||||
from typing import Optional
|
||||
from utils import output, error, success, warning
|
||||
|
||||
@click.group()
|
||||
def ipfs():
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Island commands for AITBC CLI"""
|
||||
"""Island computing commands for AITBC CLI"""
|
||||
|
||||
import click
|
||||
import json
|
||||
from utils import output, error, success, warning
|
||||
|
||||
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
"""Monitoring and dashboard commands for AITBC CLI"""
|
||||
"""Monitoring, metrics, and alerting commands for AITBC CLI"""
|
||||
|
||||
import click
|
||||
import httpx
|
||||
import json
|
||||
from utils import output, error, success, console
|
||||
import time
|
||||
from pathlib import Path
|
||||
from typing import Optional
|
||||
from datetime import datetime, timedelta
|
||||
from utils import output, error, success, console
|
||||
|
||||
|
||||
@click.group()
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Plugin commands for AITBC CLI"""
|
||||
"""Plugin marketplace commands for AITBC CLI"""
|
||||
|
||||
import click
|
||||
import json
|
||||
from utils import output, error, success, warning
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Staking commands for AITBC CLI"""
|
||||
"""Staking and validator management commands for AITBC CLI"""
|
||||
|
||||
import click
|
||||
import json
|
||||
from utils import output, error, success, warning
|
||||
|
||||
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
"""Swarm intelligence commands for AITBC CLI"""
|
||||
"""Swarm intelligence and collective optimization commands for AITBC CLI"""
|
||||
|
||||
import click
|
||||
import httpx
|
||||
import json
|
||||
from typing import Optional, Dict, Any, List
|
||||
from utils import output, error, success, warning
|
||||
from typing import Optional, Dict, Any, List
|
||||
|
||||
|
||||
@click.group()
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Validator commands for AITBC CLI"""
|
||||
"""Staking validator management commands for AITBC CLI"""
|
||||
|
||||
import click
|
||||
import json
|
||||
from utils import output, error, success, warning
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user