- Merged latest work

This commit is contained in:
mcndave committed 2023-11-03 20:21:27 -04:00
1 parent e898c6a23e
commit 0de4a9d05a
5 files changed
+14 -9

No files matched your search

+1 -1
View File
@@ -40,7 +40,7 @@ class Git implements FormInterface
$handle = popen("$command", 'r');
while ( false !== $output = fgets($handle, 2096) ){
while ( false !== $output = fgets($handle, 1024) ){
yield trim($output);
}
+2
View File
@@ -4,8 +4,10 @@ namespace Lean\Console;
use Psr\Container\ContainerInterface;
#[\Deprecated]
abstract class Lean
{
#[\Deprecated]
public static function definitions() : array
{
return require(dirname(__DIR__) . "/meta/definitions/software.php");
+8 -3
View File
@@ -6,8 +6,7 @@ use Psr\Container\ContainerInterface;
use Storage\Session;
use Notes\Tell\Attribute\Language,
Notes\Route\Attribute\Object\Route;
use Lean\Console\Form;
use Notes\Security\Attribute\{ Security, Taxus };
@@ -30,6 +29,12 @@ trait ConsoleControllerTrait
public function version() : string
{
return "0.4.1";
$version = iterator_to_array(
(new Form\Update\Git(getenv('PROJECT_PATH')))->run("/usr/bin/git describe --tags")
);
# dump($version);
return "1.5.0";
}
}