cli: platform_detect.php - detect platform from manifest.xml #61

Closed
opened 2026-05-23 22:57:54 +00:00 by jmiller · 1 comment
Owner

Summary

Extract platform detection from auto-release.yml (lines 79-93) into a CLI tool.

What it does

  • Reads .mokogitea/manifest.xml (or .gitea/manifest.xml)
  • Detects platform type (joomla, dolibarr, generic)
  • Locates manifest files (pkg_.xml, extension XMLs, mod.class.php)
  • Outputs platform, manifest path, mod_file as key=value for GITHUB_OUTPUT

CLI interface

php cli/platform_detect.php --path .

Priority

Medium complexity, high reuse.

## Summary Extract platform detection from auto-release.yml (lines 79-93) into a CLI tool. ## What it does - Reads .mokogitea/manifest.xml (or .gitea/manifest.xml) - Detects platform type (joomla, dolibarr, generic) - Locates manifest files (pkg_*.xml, extension XMLs, mod*.class.php) - Outputs platform, manifest path, mod_file as key=value for GITHUB_OUTPUT ## CLI interface ```bash php cli/platform_detect.php --path . ``` ## Priority Medium complexity, high reuse.
Author
Owner

Already implemented

Exists as cli/platform_detect.php. Reads manifest.xml and detects platform type.

The auto-release workflow currently uses inline bash for this (reading .mokogitea/manifest.xml), but the CLI tool exists for reuse. Closing as already resolved — workflow integration tracked in #65.

## Already implemented Exists as `cli/platform_detect.php`. Reads manifest.xml and detects platform type. The auto-release workflow currently uses inline bash for this (reading `.mokogitea/manifest.xml`), but the CLI tool exists for reuse. Closing as already resolved — workflow integration tracked in #65.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/moko-platform#61