Public Access
chore: complete namespace cleanup — remove all mokoplatform/MokoStandards/MokoEnterprise refs
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 16s
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 16s
Sweep 391 files across templates, workflows, MCP servers, CLI tools, lib, deploy, validate, wrappers, configs, and docs. All references to mokoplatform, moko-platform, MokoStandards, MokoStandards-API, and MokoEnterprise replaced with mokocli/MokoCli. Also renamed moko-platform.sublime-project → mokocli.sublime-project and fixed composer.json description.
This commit is contained in:
@@ -10,9 +10,9 @@
|
||||
* FILE INFORMATION
|
||||
* DEFGROUP: MokoPlatform.Templates.Scripts.Validate
|
||||
* INGROUP: MokoPlatform.Templates
|
||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokoplatform
|
||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||
* PATH: /templates/scripts/validate/validate_structure.php
|
||||
* BRIEF: Validate a repository structure against mokoplatform requirements
|
||||
* BRIEF: Validate a repository structure against mokocli requirements
|
||||
* NOTE: Deployed to bin/validate_structure.php in governed generic/default repos.
|
||||
* Run: php bin/validate_structure.php [--path DIR] [--verbose]
|
||||
*/
|
||||
@@ -25,7 +25,7 @@ require_once __DIR__ . '/../vendor/autoload.php';
|
||||
use MokoCli\CliFramework;
|
||||
|
||||
/**
|
||||
* Validates a generic repository structure against mokoplatform requirements.
|
||||
* Validates a generic repository structure against mokocli requirements.
|
||||
*
|
||||
* Checks performed:
|
||||
* - Required root files present (README.md, CHANGELOG.md, LICENSE, CONTRIBUTING.md,
|
||||
@@ -40,7 +40,7 @@ class ValidateStructure extends CliFramework
|
||||
{
|
||||
protected function configure(): void
|
||||
{
|
||||
$this->setDescription('Validate a repository structure against mokoplatform requirements');
|
||||
$this->setDescription('Validate a repository structure against mokocli requirements');
|
||||
$this->addArgument('--path', 'Repository root to validate', '.');
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ class ValidateStructure extends CliFramework
|
||||
}
|
||||
|
||||
// ── Governance attachment ─────────────────────────────────────────
|
||||
$this->section('mokoplatform governance');
|
||||
$this->section('mokocli governance');
|
||||
$mokoFile = file_exists("{$path}/.mokogitea/manifest.xml")
|
||||
|| file_exists("{$path}/.github/.mokostandards")
|
||||
|| file_exists("{$path}/.mokostandards");
|
||||
@@ -87,7 +87,7 @@ class ValidateStructure extends CliFramework
|
||||
? "{$path}/.github/.mokostandards"
|
||||
: "{$path}/.mokostandards");
|
||||
$manifestContent = file_get_contents($manifestPath);
|
||||
$isXml = str_contains($manifestContent, '<mokoplatform') || str_contains($manifestContent, '<mokostandards');
|
||||
$isXml = str_contains($manifestContent, '<mokocli') || str_contains($manifestContent, '<mokostandards');
|
||||
$this->status($isXml, 'manifest.xml uses XML format');
|
||||
$isXml ? $passed++ : $failed++;
|
||||
}
|
||||
@@ -172,5 +172,5 @@ class ValidateStructure extends CliFramework
|
||||
}
|
||||
}
|
||||
|
||||
$script = new ValidateStructure('validate_structure', 'Validate a repository structure against mokoplatform requirements');
|
||||
$script = new ValidateStructure('validate_structure', 'Validate a repository structure against mokocli requirements');
|
||||
exit($script->execute());
|
||||
|
||||
Reference in New Issue
Block a user