chore: normalize file permissions across repository
- Remove executable permissions from configuration files (.editorconfig, .env.example, .gitignore) - Remove executable permissions from documentation files (README.md, LICENSE, SECURITY.md) - Remove executable permissions from web assets (HTML, CSS, JS files) - Remove executable permissions from data files (JSON, SQL, YAML, requirements.txt) - Remove executable permissions from source code files across all apps - Add executable permissions to Python
This commit is contained in:
0
cli/aitbc_cli/commands/advanced_analytics.py
Normal file → Executable file
0
cli/aitbc_cli/commands/advanced_analytics.py
Normal file → Executable file
0
cli/aitbc_cli/commands/ai_surveillance.py
Normal file → Executable file
0
cli/aitbc_cli/commands/ai_surveillance.py
Normal file → Executable file
0
cli/aitbc_cli/commands/ai_trading.py
Normal file → Executable file
0
cli/aitbc_cli/commands/ai_trading.py
Normal file → Executable file
4
cli/aitbc_cli/commands/compliance.py
Normal file → Executable file
4
cli/aitbc_cli/commands/compliance.py
Normal file → Executable file
@@ -11,9 +11,7 @@ from typing import Optional, Dict, Any
|
||||
from datetime import datetime
|
||||
|
||||
# Import compliance providers
|
||||
import sys
|
||||
sys.path.append('/home/oib/windsurf/aitbc/apps/coordinator-api/src/app/services')
|
||||
from kyc_aml_providers import submit_kyc_verification, check_kyc_status, perform_aml_screening
|
||||
from aitbc_cli.kyc_aml_providers import submit_kyc_verification, check_kyc_status, perform_aml_screening
|
||||
|
||||
@click.group()
|
||||
def compliance():
|
||||
|
||||
@@ -90,6 +90,46 @@ def set(ctx, key: str, value: str, global_config: bool):
|
||||
}, ctx.obj['output_format'])
|
||||
|
||||
|
||||
@config.command()
|
||||
@click.argument("key")
|
||||
@click.option("--global", "global_config", is_flag=True, help="Get from global config")
|
||||
@click.pass_context
|
||||
def get(ctx, key: str, global_config: bool):
|
||||
"""Get configuration value"""
|
||||
config = ctx.obj['config']
|
||||
|
||||
# Determine config file path
|
||||
if global_config:
|
||||
config_dir = Path.home() / ".config" / "aitbc"
|
||||
config_file = config_dir / "config.yaml"
|
||||
else:
|
||||
config_file = getattr(config, 'config_file', None)
|
||||
|
||||
if not config_file or not Path(config_file).exists():
|
||||
# Try to get from current config object
|
||||
value = getattr(config, key, None)
|
||||
if value is not None:
|
||||
output({key: value}, ctx.obj['output_format'])
|
||||
else:
|
||||
error(f"Configuration key '{key}' not found")
|
||||
ctx.exit(1)
|
||||
return
|
||||
|
||||
# Load config from file
|
||||
try:
|
||||
with open(config_file, 'r') as f:
|
||||
config_data = yaml.safe_load(f) or {}
|
||||
|
||||
if key in config_data:
|
||||
output({key: config_data[key]}, ctx.obj['output_format'])
|
||||
else:
|
||||
error(f"Configuration key '{key}' not found")
|
||||
ctx.exit(1)
|
||||
except Exception as e:
|
||||
error(f"Failed to read config: {e}")
|
||||
ctx.exit(1)
|
||||
|
||||
|
||||
@config.command()
|
||||
@click.option("--global", "global_config", is_flag=True, help="Show global config")
|
||||
def path(global_config: bool):
|
||||
|
||||
0
cli/aitbc_cli/commands/enterprise_integration.py
Normal file → Executable file
0
cli/aitbc_cli/commands/enterprise_integration.py
Normal file → Executable file
0
cli/aitbc_cli/commands/explorer.py
Normal file → Executable file
0
cli/aitbc_cli/commands/explorer.py
Normal file → Executable file
0
cli/aitbc_cli/commands/global_ai_agents.py
Normal file → Executable file
0
cli/aitbc_cli/commands/global_ai_agents.py
Normal file → Executable file
0
cli/aitbc_cli/commands/global_infrastructure.py
Normal file → Executable file
0
cli/aitbc_cli/commands/global_infrastructure.py
Normal file → Executable file
0
cli/aitbc_cli/commands/multi_region_load_balancer.py
Normal file → Executable file
0
cli/aitbc_cli/commands/multi_region_load_balancer.py
Normal file → Executable file
0
cli/aitbc_cli/commands/performance_test.py
Normal file → Executable file
0
cli/aitbc_cli/commands/performance_test.py
Normal file → Executable file
0
cli/aitbc_cli/commands/plugin_analytics.py
Normal file → Executable file
0
cli/aitbc_cli/commands/plugin_analytics.py
Normal file → Executable file
0
cli/aitbc_cli/commands/plugin_marketplace.py
Normal file → Executable file
0
cli/aitbc_cli/commands/plugin_marketplace.py
Normal file → Executable file
0
cli/aitbc_cli/commands/plugin_registry.py
Normal file → Executable file
0
cli/aitbc_cli/commands/plugin_registry.py
Normal file → Executable file
0
cli/aitbc_cli/commands/plugin_security.py
Normal file → Executable file
0
cli/aitbc_cli/commands/plugin_security.py
Normal file → Executable file
0
cli/aitbc_cli/commands/production_deploy.py
Normal file → Executable file
0
cli/aitbc_cli/commands/production_deploy.py
Normal file → Executable file
0
cli/aitbc_cli/commands/regulatory.py
Normal file → Executable file
0
cli/aitbc_cli/commands/regulatory.py
Normal file → Executable file
0
cli/aitbc_cli/commands/security_test.py
Normal file → Executable file
0
cli/aitbc_cli/commands/security_test.py
Normal file → Executable file
0
cli/aitbc_cli/commands/surveillance.py
Normal file → Executable file
0
cli/aitbc_cli/commands/surveillance.py
Normal file → Executable file
Reference in New Issue
Block a user