This repository has been archived by the owner on Jan 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
kirby
executable file
·59 lines (47 loc) · 1.84 KB
/
kirby
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
57
58
59
#!/usr/bin/env php
<?php
if(file_exists(__DIR__ . '/../../autoload.php')) {
require __DIR__ . '/../../autoload.php';
} else {
require __DIR__ . '/vendor/autoload.php';
}
ini_set('display_errors', 1);
$app = new Symfony\Component\Console\Application('Kirby CLI', '1.6.0');
// Install Commands
$app->add(new Kirby\Cli\Command\Install());
$app->add(new Kirby\Cli\Command\Install\Core());
$app->add(new Kirby\Cli\Command\Install\Panel());
$app->add(new Kirby\Cli\Command\Install\Toolkit());
$app->add(new Kirby\Cli\Command\Install\Index());
$app->add(new Kirby\Cli\Command\Install\Htaccess());
// Uninstall Commands
$app->add(new Kirby\Cli\Command\Uninstall());
$app->add(new Kirby\Cli\Command\Uninstall\Panel());
// Update Command
$app->add(new Kirby\Cli\Command\Update());
// Clear Commands
$app->add(new Kirby\Cli\Command\Clear\Cache());
$app->add(new Kirby\Cli\Command\Clear\Thumbs());
// Make Commands
$app->add(new Kirby\Cli\Command\Make\Controller());
$app->add(new Kirby\Cli\Command\Make\Snippet());
$app->add(new Kirby\Cli\Command\Make\Template());
$app->add(new Kirby\Cli\Command\Make\Blueprint());
$app->add(new Kirby\Cli\Command\Make\User());
$app->add(new Kirby\Cli\Command\Make\Tag());
$app->add(new Kirby\Cli\Command\Make\Plugin());
// Delete Commands
$app->add(new Kirby\Cli\Command\Delete\Controller());
$app->add(new Kirby\Cli\Command\Delete\Snippet());
$app->add(new Kirby\Cli\Command\Delete\Template());
$app->add(new Kirby\Cli\Command\Delete\Blueprint());
$app->add(new Kirby\Cli\Command\Delete\User());
$app->add(new Kirby\Cli\Command\Delete\Tag());
$app->add(new Kirby\Cli\Command\Delete\Plugin());
// Plugin Commands
$app->add(new Kirby\Cli\Command\Plugin\Install());
$app->add(new Kirby\Cli\Command\Plugin\Uninstall());
$app->add(new Kirby\Cli\Command\Plugin\Update());
// Kirby Version
$app->add(new Kirby\Cli\Command\Version());
$app->run();