-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlea.php
More file actions
32 lines (26 loc) · 961 Bytes
/
lea.php
File metadata and controls
32 lines (26 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
declare(strict_types=1);
namespace Lea;
use Lea\Adore\Fancy;
use Lea\Adore\Girlfriend;
use Lea\Adore\Heath;
use Lea\Adore\PaisleyPark;
define(constant_name: 'ROOT', value: dirname(path: __DIR__) . "/Lea");
define(constant_name: 'REPO', value: realpath(path: ".") . "/arx/");
require_once ROOT . "/vendor/autoload.php";
Girlfriend::comeToMe()->parseArguments($argv);
Girlfriend::comeToMe()->emotionalPump();
Girlfriend::comeToMe()->myNameIsLea();
if (Girlfriend::comeToMe()->recall(name: "heath-mode") === "yes") {
$heath = new Heath();
foreach ($heath->ebookFiles as $fileName) {
echo $heath->heathName . Fancy::BG_BLUE . " $fileName " . Fancy::RESET . PHP_EOL;
Girlfriend::comeToMe()->myNameIsLea();
$work = new PaisleyPark(fileName: $fileName);
$work->pControl();
$heath->makeIndex($work)->writeIndex();
}
} else {
$work = new PaisleyPark(fileName: $argv[1] ?? "");
$work->pControl();
}