diff --git a/bin/moko b/bin/moko index 3d6701f..ae03364 100644 --- a/bin/moko +++ b/bin/moko @@ -88,45 +88,76 @@ require_once $autoloader; */ const COMMAND_MAP = [ // Automation - 'sync' => 'api/automation/bulk_sync.php', + 'sync' => 'automation/bulk_sync.php', // Maintenance - 'inventory' => 'api/maintenance/update_repo_inventory.php', + 'inventory' => 'maintenance/update_repo_inventory.php', // Validation — general - 'health' => 'api/validate/check_repo_health.php', - 'check:syntax' => 'api/validate/check_php_syntax.php', - 'check:version' => 'api/validate/check_version_consistency.php', - 'check:changelog' => 'api/validate/check_changelog.php', - 'check:structure' => 'api/validate/check_structure.php', - 'check:headers' => 'api/validate/check_license_headers.php', - 'check:secrets' => 'api/validate/check_no_secrets.php', - 'check:tabs' => 'api/validate/check_tabs.php', - 'check:paths' => 'api/validate/check_paths.php', - 'check:xml' => 'api/validate/check_xml_wellformed.php', - 'check:enterprise' => 'api/validate/check_enterprise_readiness.php', + 'health' => 'validate/check_repo_health.php', + 'check:syntax' => 'validate/check_php_syntax.php', + 'check:version' => 'validate/check_version_consistency.php', + 'check:changelog' => 'validate/check_changelog.php', + 'check:structure' => 'validate/check_structure.php', + 'check:headers' => 'validate/check_license_headers.php', + 'check:secrets' => 'validate/check_no_secrets.php', + 'check:tabs' => 'validate/check_tabs.php', + 'check:paths' => 'validate/check_paths.php', + 'check:xml' => 'validate/check_xml_wellformed.php', + 'check:enterprise' => 'validate/check_enterprise_readiness.php', // Validation — platform-specific - 'check:dolibarr' => 'api/validate/check_dolibarr_module.php', - 'check:joomla' => 'api/validate/check_joomla_manifest.php', - 'check:language' => 'api/validate/check_language_structure.php', + 'check:dolibarr' => 'validate/check_dolibarr_module.php', + 'check:joomla' => 'validate/check_joomla_manifest.php', + 'check:language' => 'validate/check_language_structure.php', + 'check:client' => 'validate/check_client_theme.php', + 'check:wiki' => 'validate/check_wiki_health.php', // Detection - 'detect' => 'api/validate/auto_detect_platform.php', + 'detect' => 'validate/auto_detect_platform.php', // Org-wide - 'drift' => 'api/validate/scan_drift.php', + 'drift' => 'validate/scan_drift.php', // Release - 'release' => 'api/cli/release.php', + 'release' => 'cli/release.php', + 'release:notes' => 'cli/release_notes.php', + 'release:validate' => 'cli/release_validate.php', + 'release:cascade' => 'cli/release_cascade.php', + 'release:manage' => 'cli/release_manage.php', - // CLI utilities (used by workflows — centralized logic) - 'version:read' => 'api/cli/version_read.php', - 'version:bump' => 'api/cli/version_bump.php', - 'version:propagate' => 'api/maintenance/update_version_from_readme.php', - 'version:set-platform' => 'api/cli/version_set_platform.php', - 'platform:detect' => 'api/cli/platform_detect.php', - 'release:notes' => 'api/cli/release_notes.php', + // Version management + 'version:read' => 'cli/version_read.php', + 'version:bump' => 'cli/version_bump.php', + 'version:propagate' => 'maintenance/update_version_from_readme.php', + 'version:set-platform' => 'cli/version_set_platform.php', + + // Build & package + 'build:package' => 'cli/package_build.php', + 'build:joomla' => 'cli/joomla_build.php', + 'build:updates-xml' => 'cli/updates_xml_build.php', + + // Platform detection + 'platform:detect' => 'cli/platform_detect.php', + 'manifest:read' => 'cli/manifest_read.php', + + // Repository management + 'repo:create' => 'cli/create_repo.php', + 'repo:archive' => 'cli/archive_repo.php', + 'repo:scaffold-client' => 'cli/scaffold_client.php', + 'repo:provision' => 'cli/client_provision.php', + + // Bulk operations + 'bulk:push-workflow' => 'cli/bulk_workflow_push.php', + 'bulk:trigger' => 'cli/bulk_workflow_trigger.php', + 'bulk:sync-rulesets' => 'cli/sync_rulesets.php', + + // Monitoring & dashboards + 'dashboard' => 'cli/client_dashboard.php', + 'grafana' => 'cli/grafana_dashboard.php', + 'client:inventory' => 'cli/client_inventory.php', + + // Module validation 'validate:module' => 'bin/validate-module', ];