mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-16 23:39:54 +03:00
Created CLI scripts for Windows OS
This commit is contained in:
parent
4bbdccf981
commit
804d99ebf7
4 changed files with 26 additions and 19 deletions
9
bin/cli
9
bin/cli
|
@ -1,11 +1,4 @@
|
||||||
#!/usr/bin/env php
|
#!/usr/bin/env php
|
||||||
<?php
|
<?php
|
||||||
use Interop\Container\ContainerInterface;
|
|
||||||
use Symfony\Component\Console\Application as CliApp;
|
|
||||||
|
|
||||||
/** @var ContainerInterface $container */
|
include 'cli.php';
|
||||||
$container = include __DIR__ . '/../config/container.php';
|
|
||||||
|
|
||||||
/** @var CliApp $app */
|
|
||||||
$app = $container->get(CliApp::class);
|
|
||||||
$app->run();
|
|
||||||
|
|
10
bin/cli.php
Normal file
10
bin/cli.php
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
use Interop\Container\ContainerInterface;
|
||||||
|
use Symfony\Component\Console\Application as CliApp;
|
||||||
|
|
||||||
|
/** @var ContainerInterface $container */
|
||||||
|
$container = include __DIR__ . '/../config/container.php';
|
||||||
|
|
||||||
|
/** @var CliApp $app */
|
||||||
|
$app = $container->get(CliApp::class);
|
||||||
|
$app->run();
|
12
bin/install
12
bin/install
|
@ -1,14 +1,4 @@
|
||||||
#!/usr/bin/env php
|
#!/usr/bin/env php
|
||||||
<?php
|
<?php
|
||||||
use Shlinkio\Shlink\CLI\Command\Install\InstallCommand;
|
|
||||||
use Symfony\Component\Console\Application;
|
|
||||||
use Zend\Config\Writer\PhpArray;
|
|
||||||
|
|
||||||
chdir(dirname(__DIR__));
|
include 'install.php';
|
||||||
|
|
||||||
require __DIR__ . '/../vendor/autoload.php';
|
|
||||||
|
|
||||||
$app = new Application();
|
|
||||||
$app->add(new InstallCommand(new PhpArray()));
|
|
||||||
$app->setDefaultCommand('shlink:install');
|
|
||||||
$app->run();
|
|
||||||
|
|
14
bin/install.php
Executable file
14
bin/install.php
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/usr/bin/env php
|
||||||
|
<?php
|
||||||
|
use Shlinkio\Shlink\CLI\Command\Install\InstallCommand;
|
||||||
|
use Symfony\Component\Console\Application;
|
||||||
|
use Zend\Config\Writer\PhpArray;
|
||||||
|
|
||||||
|
chdir(dirname(__DIR__));
|
||||||
|
|
||||||
|
require __DIR__ . '/../vendor/autoload.php';
|
||||||
|
|
||||||
|
$app = new Application();
|
||||||
|
$app->add(new InstallCommand(new PhpArray()));
|
||||||
|
$app->setDefaultCommand('shlink:install');
|
||||||
|
$app->run();
|
Loading…
Add table
Reference in a new issue