2026-04-13 06:12:04 +00:00
|
|
|
<?php
|
|
|
|
|
/**
|
2026-06-21 01:17:18 -05:00
|
|
|
* mokocli Common Functions
|
2026-05-11 17:10:19 -05:00
|
|
|
*
|
2026-04-13 06:12:04 +00:00
|
|
|
* Copyright (C) 2026 Moko Consulting <hello@mokoconsulting.tech>
|
2026-05-11 17:10:19 -05:00
|
|
|
*
|
2026-04-13 06:12:04 +00:00
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2026-05-11 17:10:19 -05:00
|
|
|
*
|
|
|
|
|
* FILE INFORMATION
|
2026-05-31 12:14:34 -05:00
|
|
|
* DEFGROUP: MokoPlatform.Common
|
|
|
|
|
* INGROUP: MokoPlatform
|
2026-06-21 01:17:18 -05:00
|
|
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
2026-05-11 17:10:19 -05:00
|
|
|
* PATH: /src/functions.php
|
|
|
|
|
* BRIEF: Common utility functions
|
|
|
|
|
*
|
2026-06-21 01:17:18 -05:00
|
|
|
* This file provides global helper functions for mokocli.
|
2026-05-11 17:10:19 -05:00
|
|
|
*
|
2026-05-31 12:14:34 -05:00
|
|
|
* @package MokoPlatform
|
2026-04-13 06:12:04 +00:00
|
|
|
* @version 04.00.04
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
if (!function_exists('mokostandards_version')) {
|
|
|
|
|
/**
|
2026-06-21 01:17:18 -05:00
|
|
|
* Get the mokocli version
|
2026-04-13 06:12:04 +00:00
|
|
|
*
|
|
|
|
|
* @return string Version number
|
|
|
|
|
*/
|
|
|
|
|
function mokostandards_version(): string
|
|
|
|
|
{
|
|
|
|
|
return '04.00.04';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!function_exists('mokostandards_root_dir')) {
|
|
|
|
|
/**
|
2026-06-21 01:17:18 -05:00
|
|
|
* Get the mokocli root directory
|
2026-04-13 06:12:04 +00:00
|
|
|
*
|
|
|
|
|
* @return string Root directory path
|
|
|
|
|
*/
|
|
|
|
|
function mokostandards_root_dir(): string
|
|
|
|
|
{
|
|
|
|
|
return dirname(__DIR__);
|
|
|
|
|
}
|
|
|
|
|
}
|