Skip to content

Commit b26ceff

Browse files
committed
✨ added automatic versioning
1 parent 19e2d30 commit b26ceff

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

bin/leaf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ if (file_exists(__DIR__ . "/../../../autoload.php")) {
66
require __DIR__ . "/../vendor/autoload.php";
77
}
88

9-
$app = new Symfony\Component\Console\Application("Leaf CLI", "2.0.0");
9+
$leafCli = json_decode(file_get_contents(dirname(__DIR__) . "/composer.json"));
10+
$currentVersion = $leafCli->version;
11+
12+
$app = new Symfony\Component\Console\Application("Leaf CLI", $currentVersion);
1013

1114
$app->add(new Leaf\Console\CreateCommand);
1215
$app->add(new Leaf\Console\UpdateCommand);

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "leafs/cli",
33
"description": "A simple command line tool for installing and interacting with your leaf apps",
44
"homepage": "https://leafphp.netlify.com/#/",
5-
"version": "v2.0.2",
5+
"version": "v2.0.3",
66
"keywords": [
77
"leaf",
88
"php",

0 commit comments

Comments
 (0)