Public Access
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 94e6084e0f | |||
| 55a82d7d21 | |||
| 88acf57278 | |||
| ac293fd038 |
@@ -127,7 +127,7 @@ class ClientDashboardCli extends CliFramework
|
||||
$name = $repo['name'] ?? '';
|
||||
|
||||
if (
|
||||
!str_starts_with($name, 'client-waas-')
|
||||
!str_starts_with($name, 'client-waas-') && !str_starts_with($name, 'client-mokosuite-')
|
||||
|| !empty($repo['archived'])
|
||||
) {
|
||||
continue;
|
||||
@@ -135,7 +135,7 @@ class ClientDashboardCli extends CliFramework
|
||||
|
||||
$clients[] = [
|
||||
'repo' => $repo['full_name'] ?? '',
|
||||
'name' => str_replace('client-waas-', '', $name),
|
||||
'name' => str_replace(['client-waas-', 'client-mokosuite-'], '', $name),
|
||||
'description' => $repo['description'] ?? '',
|
||||
'updated' => $repo['updated_at'] ?? '',
|
||||
'url' => $repo['html_url'] ?? '',
|
||||
|
||||
@@ -79,7 +79,7 @@ class ClientInventoryCli extends CliFramework
|
||||
foreach ($repos as $repo) {
|
||||
$repoName = $repo['name'] ?? '';
|
||||
|
||||
if (strpos($repoName, 'client-waas') === false) {
|
||||
if (strpos($repoName, 'client-waas') === false && strpos($repoName, 'client-mokosuite') === false) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ class ClientProvisionCli extends CliFramework
|
||||
return 1;
|
||||
}
|
||||
|
||||
$this->repoName = 'client-waas-' . $clientName;
|
||||
$this->repoName = 'client-mokosuite-' . $clientName;
|
||||
|
||||
$this->log('INFO', "=== Client Provisioning: {$clientName} ===");
|
||||
$this->log('INFO', " Org: {$this->org}");
|
||||
@@ -156,7 +156,7 @@ class ClientProvisionCli extends CliFramework
|
||||
$resp = $this->giteaApi(
|
||||
'POST',
|
||||
'/api/v1/repos/MokoConsulting/'
|
||||
. 'Template-Client-WaaS/generate',
|
||||
. 'Template-Client/generate',
|
||||
$payload
|
||||
);
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
||||
* PATH: /cli/scaffold_client.php
|
||||
* VERSION: 09.43.00
|
||||
* BRIEF: Scaffold a new client-waas repo from Template-Client-WaaS with pre-configured settings
|
||||
* BRIEF: Scaffold a new client-waas repo from Template-Client with pre-configured settings
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
@@ -26,7 +26,7 @@ class ScaffoldClientCli extends CliFramework
|
||||
{
|
||||
protected function configure(): void
|
||||
{
|
||||
$this->setDescription('Scaffold a new client-waas repo from Template-Client-WaaS');
|
||||
$this->setDescription('Scaffold a new client-waas repo from Template-Client');
|
||||
$this->addArgument('--name', 'Client name', '');
|
||||
$this->addArgument('--org', 'Gitea organization', '');
|
||||
$this->addArgument('--gitea-url', 'Gitea URL', 'https://git.mokoconsulting.tech');
|
||||
@@ -47,7 +47,7 @@ class ScaffoldClientCli extends CliFramework
|
||||
$this->log('INFO', "Scaffolding client repo: {$org}/{$repoName}");
|
||||
$this->log('INFO', "Gitea URL: {$giteaUrl}");
|
||||
if ($this->dryRun) {
|
||||
$this->log('INFO', '[DRY RUN] Would create repo from template MokoConsulting/Template-Client-WaaS');
|
||||
$this->log('INFO', '[DRY RUN] Would create repo from template MokoConsulting/Template-Client');
|
||||
$this->log('INFO', "[DRY RUN] Repo: {$org}/{$repoName}");
|
||||
$this->printPostSetupInstructions($repoName, $giteaUrl, $org);
|
||||
return 0;
|
||||
@@ -64,7 +64,7 @@ class ScaffoldClientCli extends CliFramework
|
||||
]);
|
||||
$response = $this->apiRequest(
|
||||
'POST',
|
||||
"/api/v1/repos/MokoConsulting/Template-Client-WaaS/generate",
|
||||
"/api/v1/repos/MokoConsulting/Template-Client/generate",
|
||||
$giteaUrl,
|
||||
$token,
|
||||
$createPayload
|
||||
|
||||
@@ -934,7 +934,7 @@ class RepositorySynchronizer
|
||||
'mcp' => 'MokoConsulting/Template-Generic',
|
||||
'dolibarr' => 'MokoConsulting/Template-Generic',
|
||||
'crm-module' => 'MokoConsulting/Template-Generic',
|
||||
'client' => 'MokoConsulting/Template-Client-WaaS',
|
||||
'client' => 'MokoConsulting/Template-Client',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -951,7 +951,7 @@ class RepositorySynchronizer
|
||||
*/
|
||||
private const TEMPLATE_SYNC_TARGETS = [
|
||||
'MokoConsulting/Template-Joomla',
|
||||
'MokoConsulting/Template-Client-WaaS',
|
||||
'MokoConsulting/Template-Client',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@@ -78,7 +78,7 @@ else
|
||||
["MokoConsulting/ssh-mcp"]="ssh-mcp"
|
||||
["MokoConsulting/backup-mcp"]="backup-mcp"
|
||||
["MokoConsulting/joomla-api-mcp"]="joomla-api-mcp"
|
||||
["MokoConsulting/Template-Client-WaaS"]="Template-Client-WaaS"
|
||||
["MokoConsulting/Template-Client"]="Template-Client"
|
||||
["ClarksvilleFurs/client-waas-clarksvillefurs"]="client-clarksvillefurs"
|
||||
)
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user