Public Access
Merge pull request 'fix(critical): bin/moko COMMAND_MAP paths + add all CLI tools' (#106) from dev into main
Generic: Repo Health / Access control (push) Has been cancelled
Generic: Repo Health / Site Health (push) Has been cancelled
Universal: Cascade Main → Dev / Cascade main → branches (push) Has been cancelled
Generic: Repo Health / Release configuration (push) Has been cancelled
Generic: Repo Health / Scripts governance (push) Has been cancelled
Generic: Repo Health / Repository health (push) Has been cancelled
Platform: moko-platform CI / Gate 1: Code Quality (push) Has been cancelled
Platform: moko-platform CI / Gate 5: Template Integrity (push) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.1) (push) Has been cancelled
Platform: moko-platform CI / Gate 3: Self-Health Check (push) Has been cancelled
Platform: moko-platform CI / Gate 4: Governance (push) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.2) (push) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.3) (push) Has been cancelled
Platform: moko-platform CI / CI Summary (push) Has been cancelled
Generic: Repo Health / Access control (push) Has been cancelled
Generic: Repo Health / Site Health (push) Has been cancelled
Universal: Cascade Main → Dev / Cascade main → branches (push) Has been cancelled
Generic: Repo Health / Release configuration (push) Has been cancelled
Generic: Repo Health / Scripts governance (push) Has been cancelled
Generic: Repo Health / Repository health (push) Has been cancelled
Platform: moko-platform CI / Gate 1: Code Quality (push) Has been cancelled
Platform: moko-platform CI / Gate 5: Template Integrity (push) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.1) (push) Has been cancelled
Platform: moko-platform CI / Gate 3: Self-Health Check (push) Has been cancelled
Platform: moko-platform CI / Gate 4: Governance (push) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.2) (push) Has been cancelled
Platform: moko-platform CI / Gate 2: Unit Tests (8.3) (push) Has been cancelled
Platform: moko-platform CI / CI Summary (push) Has been cancelled
This commit was merged in pull request #106.
This commit is contained in:
@@ -88,45 +88,76 @@ require_once $autoloader;
|
|||||||
*/
|
*/
|
||||||
const COMMAND_MAP = [
|
const COMMAND_MAP = [
|
||||||
// Automation
|
// Automation
|
||||||
'sync' => 'api/automation/bulk_sync.php',
|
'sync' => 'automation/bulk_sync.php',
|
||||||
|
|
||||||
// Maintenance
|
// Maintenance
|
||||||
'inventory' => 'api/maintenance/update_repo_inventory.php',
|
'inventory' => 'maintenance/update_repo_inventory.php',
|
||||||
|
|
||||||
// Validation — general
|
// Validation — general
|
||||||
'health' => 'api/validate/check_repo_health.php',
|
'health' => 'validate/check_repo_health.php',
|
||||||
'check:syntax' => 'api/validate/check_php_syntax.php',
|
'check:syntax' => 'validate/check_php_syntax.php',
|
||||||
'check:version' => 'api/validate/check_version_consistency.php',
|
'check:version' => 'validate/check_version_consistency.php',
|
||||||
'check:changelog' => 'api/validate/check_changelog.php',
|
'check:changelog' => 'validate/check_changelog.php',
|
||||||
'check:structure' => 'api/validate/check_structure.php',
|
'check:structure' => 'validate/check_structure.php',
|
||||||
'check:headers' => 'api/validate/check_license_headers.php',
|
'check:headers' => 'validate/check_license_headers.php',
|
||||||
'check:secrets' => 'api/validate/check_no_secrets.php',
|
'check:secrets' => 'validate/check_no_secrets.php',
|
||||||
'check:tabs' => 'api/validate/check_tabs.php',
|
'check:tabs' => 'validate/check_tabs.php',
|
||||||
'check:paths' => 'api/validate/check_paths.php',
|
'check:paths' => 'validate/check_paths.php',
|
||||||
'check:xml' => 'api/validate/check_xml_wellformed.php',
|
'check:xml' => 'validate/check_xml_wellformed.php',
|
||||||
'check:enterprise' => 'api/validate/check_enterprise_readiness.php',
|
'check:enterprise' => 'validate/check_enterprise_readiness.php',
|
||||||
|
|
||||||
// Validation — platform-specific
|
// Validation — platform-specific
|
||||||
'check:dolibarr' => 'api/validate/check_dolibarr_module.php',
|
'check:dolibarr' => 'validate/check_dolibarr_module.php',
|
||||||
'check:joomla' => 'api/validate/check_joomla_manifest.php',
|
'check:joomla' => 'validate/check_joomla_manifest.php',
|
||||||
'check:language' => 'api/validate/check_language_structure.php',
|
'check:language' => 'validate/check_language_structure.php',
|
||||||
|
'check:client' => 'validate/check_client_theme.php',
|
||||||
|
'check:wiki' => 'validate/check_wiki_health.php',
|
||||||
|
|
||||||
// Detection
|
// Detection
|
||||||
'detect' => 'api/validate/auto_detect_platform.php',
|
'detect' => 'validate/auto_detect_platform.php',
|
||||||
|
|
||||||
// Org-wide
|
// Org-wide
|
||||||
'drift' => 'api/validate/scan_drift.php',
|
'drift' => 'validate/scan_drift.php',
|
||||||
|
|
||||||
// Release
|
// 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 management
|
||||||
'version:read' => 'api/cli/version_read.php',
|
'version:read' => 'cli/version_read.php',
|
||||||
'version:bump' => 'api/cli/version_bump.php',
|
'version:bump' => 'cli/version_bump.php',
|
||||||
'version:propagate' => 'api/maintenance/update_version_from_readme.php',
|
'version:propagate' => 'maintenance/update_version_from_readme.php',
|
||||||
'version:set-platform' => 'api/cli/version_set_platform.php',
|
'version:set-platform' => 'cli/version_set_platform.php',
|
||||||
'platform:detect' => 'api/cli/platform_detect.php',
|
|
||||||
'release:notes' => 'api/cli/release_notes.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',
|
'validate:module' => 'bin/validate-module',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user