Skip to content

Commit 1312689

Browse files
committed
Sli: Add executable command
1 parent 1243b1d commit 1312689

File tree

7 files changed

+10
-8
lines changed

7 files changed

+10
-8
lines changed

.php-cs-fixer.dist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
__DIR__ . '/scripts',
1111
])
1212
->append([
13-
__DIR__ . '/bin/sli',
1413
__DIR__ . '/bootstrap.php',
14+
__DIR__ . '/src/Toolkit/Sli/sli',
1515
__DIR__ . '/tests/phpstan-conditional.php',
1616
__DIR__ . '/tests/test-sli',
1717
__DIR__ . '/stubs/ADOConnection.stub',

.prettyphp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"src": [
3-
"bin/sli",
43
"scripts",
54
"src",
65
"stubs",
@@ -14,7 +13,7 @@
1413
".php-cs-fixer.dist.php",
1514
"bootstrap.php"
1615
],
17-
"includeIfPhp": "/\\.stub$/",
16+
"includeIfPhp": "/(\\/sli|\\.stub)$/",
1817
"enable": [
1918
"preserve-one-line",
2019
"strict-lists"

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
]
106106
},
107107
"bin": [
108-
"bin/sli"
108+
"src/Toolkit/Sli/sli"
109109
],
110110
"config": {
111111
"allow-plugins": {

phpstan.neon.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ includes:
55
parameters:
66
level: 9
77
paths:
8-
- bin/sli
98
- scripts
109
- src
10+
- src/Toolkit/Sli/sli
1111
- stubs
1212
- tests/3rdparty
1313
- tests/fixtures

src/Toolkit/Sli/composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,8 @@
3232
},
3333
"config": {
3434
"sort-packages": true
35-
}
35+
},
36+
"bin": [
37+
"sli"
38+
]
3639
}

src/Toolkit/Sli/sli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use Salient\Sync\Command\GetSyncEntities;
1414

1515
/** @var ClassLoader */
1616
$loader = require $_composer_autoload_path
17-
?? dirname(__DIR__) . '/vendor/autoload.php';
17+
?? dirname(__DIR__, 3) . '/vendor/autoload.php';
1818

1919
(new CliApplication())
2020
->command(['generate', 'builder'], GenerateBuilder::class)

tests/test-sli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ Event::getInstance()->listen(
3232
),
3333
);
3434

35-
require dirname(__DIR__) . '/bin/sli';
35+
require dirname(__DIR__) . '/src/Toolkit/Sli/sli';

0 commit comments

Comments
 (0)