Skip to content

Commit 0e28eb6

Browse files
committed
Improve status output by moving all handling of formatting and displaying into a designated class
1 parent ffe5351 commit 0e28eb6

File tree

7 files changed

+330
-883
lines changed

7 files changed

+330
-883
lines changed

bin/openapi-client-generator.source

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
use ApiClients\Tools\OpenApiClientGenerator\Configuration;
55
use ApiClients\Tools\OpenApiClientGenerator\Generator;
6-
use ApiClients\Tools\OpenApiClientGenerator\Logger;
76
use EventSauce\ObjectHydrator\ObjectMapperUsingReflection;
87
use Symfony\Component\Yaml\Yaml;
98

@@ -21,7 +20,6 @@ use Symfony\Component\Yaml\Yaml;
2120
exit((function (string $configurationFile): int {
2221
$configuration = (new ObjectMapperUsingReflection())->hydrateObject(Configuration::class, Yaml::parseFile($configurationFile));
2322
(new Generator(
24-
Logger::create(),
2523
$configuration,
2624
dirname($configurationFile) . DIRECTORY_SEPARATOR,
2725
))->generate(

composer.json

Lines changed: 38 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,48 +8,36 @@
88
"email": "[email protected]"
99
}
1010
],
11-
"bin": [
12-
"bin/openapi-client-generator"
13-
],
14-
"extra": {
15-
"wyrihaximus": {
16-
"bin-autoload-path-update": [
17-
"bin/openapi-client-generator"
18-
]
19-
}
20-
},
2111
"require": {
2212
"php": "^8.2",
13+
"api-clients/contracts": "^0.1",
14+
"api-clients/github": "^0.2@dev",
15+
"ckr/arraymerger": "^3.0",
16+
"delight-im/random": "^1.0",
2317
"devizzent/cebe-php-openapi": "^1",
18+
"eventsauce/object-hydrator": "^1.2",
2419
"jawira/case-converter": "^3.5",
25-
"twig/twig": "^3.5",
20+
"league/openapi-psr7-validator": "^0.21",
2621
"nikic/php-parser": "^4.15",
22+
"nunomaduro/termwind": "^1.15",
2723
"psr/http-message": "^1.0",
28-
"ringcentral/psr7": "^1.3",
29-
"symfony/yaml": "^5.4",
30-
"wyrihaximus/composer-update-bin-autoload-path": "^1 || ^1.0.1",
31-
"league/openapi-psr7-validator": "^0.21",
24+
"ramsey/uuid": "^4.7",
25+
"react/async": "^4.0",
3226
"react/http": "^1.8",
3327
"reactivex/rxphp": "^2.0",
34-
"api-clients/contracts": "^0.1",
35-
"eventsauce/object-hydrator": "^1.2",
36-
"react/async": "^4.0",
28+
"ringcentral/psr7": "^1.3",
29+
"symfony/yaml": "^5.4",
30+
"twig/twig": "^3.5",
31+
"wyrihaximus/async-test-utilities": "^6.1",
32+
"wyrihaximus/composer-update-bin-autoload-path": "^1",
3733
"wyrihaximus/react-awaitable-observable": "^1.0",
38-
"ckr/arraymerger": "^3.0",
39-
"ramsey/uuid": "^4.7",
40-
"wyrihaximus/subsplit-tools": "dev-main",
4134
"wyrihaximus/simple-twig": "^2.1",
42-
"wyrihaximus/async-test-utilities": "^6.1",
43-
"api-clients/github": "^0.2@dev",
44-
"delight-im/random": "^1.0",
45-
"wyrihaximus/monolog-factory": "^1.2",
46-
"maxime-pasquier/monolog-stdout-handler": "^2.1",
47-
"divineomega/php-cli-progress-bar": "^2.1"
35+
"wyrihaximus/subsplit-tools": "dev-main"
4836
},
4937
"autoload": {
5038
"psr-4": {
51-
"ApiClients\\Tools\\OpenApiClientGenerator\\": "src/",
52-
"ApiClients\\Client\\Github\\": "generated/"
39+
"ApiClients\\Client\\Github\\": "generated/",
40+
"ApiClients\\Tools\\OpenApiClientGenerator\\": "src/"
5341
},
5442
"files": [
5543
"external_files/cebe/JsonReference.php",
@@ -65,15 +53,33 @@
6553
"ApiClients\\Tests\\Tools\\OpenApiClientGenerator\\": "tests/"
6654
}
6755
},
56+
"bin": [
57+
"bin/openapi-client-generator"
58+
],
6859
"config": {
69-
"platform": {
70-
"php": "8.2.13"
71-
},
7260
"allow-plugins": {
7361
"wyrihaximus/composer-update-bin-autoload-path": true,
7462
"infection/extension-installer": true,
7563
"dealerdirect/phpcodesniffer-composer-installer": true,
7664
"ergebnis/composer-normalize": true
65+
},
66+
"platform": {
67+
"php": "8.2.13"
7768
}
69+
},
70+
"extra": {
71+
"wyrihaximus": {
72+
"bin-autoload-path-update": [
73+
"bin/openapi-client-generator"
74+
]
75+
}
76+
},
77+
"scripts": {
78+
"post-install-cmd": [
79+
"composer normalize"
80+
],
81+
"post-update-cmd": [
82+
"composer normalize"
83+
]
7884
}
7985
}

0 commit comments

Comments
 (0)