-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from jolicode/feat/jane-7.6-upgrade
Upgrade to Jane 7.6
- Loading branch information
Showing
172 changed files
with
10,770 additions
and
3,988 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Castor | ||
/.castor.stub.php | ||
|
||
# Composer | ||
composer.lock | ||
composer.phar | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of JoliCode's Forecast PHP API project. | ||
* | ||
* (c) JoliCode <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace sdk; | ||
|
||
use Castor\Attribute\AsTask; | ||
|
||
use function Castor\exit_code; | ||
use function Castor\import; | ||
use function Castor\io; | ||
|
||
import(__DIR__.'/tools/php-cs-fixer/castor.php'); | ||
|
||
#[AsTask(description: 'Re-generates the SDK using the local specification')] | ||
function generate(): int | ||
{ | ||
io()->comment('Generating the SDK using Jane OpenAPI...'); | ||
$result = exit_code('./vendor/bin/jane-openapi generate -c .jane-openapi.php'); | ||
|
||
if (0 !== $result) { | ||
io()->error('An error occurred while generating the SDK.'); | ||
} else { | ||
io()->success('Successfully generated the SDK'); | ||
} | ||
|
||
return $result; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.