-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
56 lines (52 loc) · 1.62 KB
/
index.php
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
namespace LukasKleinschmidt\Types;
use Kirby\Cms\App;
use Kirby\CLI\CLI;
@include_once __DIR__ . '/vendor/autoload.php';
@include_once __DIR__ . '/helpers.php';
App::plugin('lukaskleinschmidt/types', [
'options' => [
'aliases' => [],
'decorators' => [],
'fieldsets' => [],
'filename' => 'types.php',
'force' => false,
'include' => [
'aliases',
'blueprints',
'decorators',
'methods',
],
],
'commands' => [
'types:create' => [
'description' => 'Create a new IDE helper file',
'command' => function (CLI $cli) {
Command::run($cli);
},
'args' => [
'filename' => [
'prefix' => 'f',
'longPrefix' => 'filename',
'description' => 'The path to the helper file',
],
'force' => [
'prefix' => 'F',
'longPrefix' => 'force',
'description' => 'Force the file creation',
'noValue' => true,
],
'include' => [
'prefix' => 'i',
'longPrefix' => 'include',
'description' => 'Select the parts you want to include',
'noValue' => true,
],
],
],
],
'snippets' => [
'stubs/types-comment' => __DIR__ . '/snippets/comment.stub.php',
'stubs/types-template' => __DIR__ . '/snippets/template.stub.php',
],
]);