Skip to content

Commit fc3bd8e

Browse files
committed
updated interact action
1 parent 8a13d1b commit fc3bd8e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/App/InteractCommand.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,16 @@ protected function configure() {
1818

1919

2020
protected function execute(InputInterface $input, OutputInterface $output) {
21+
$output->writeln("<info>Leaf interactive shell activated</info>");
22+
2123
if (file_exists("vendor/autoload.php")) require "vendor/autoload.php";
2224
if (file_exists("Config/bootstrap.php")) require "Config/bootstrap.php";
2325
if (file_exists("index.php") && !file_exists("leaf")) require "index.php";
26+
27+
if (!file_exists("vendor/autoload.php") && !file_exists("Config/bootstrap.php") && (file_exists("index.php") && file_exists("leaf"))) {
28+
$output->writeln("<info>Required files not found, starting shell running in retard mode...</info>");
29+
}
2430

25-
$output->writeln("<info>Leaf interactive shell activated</info>");
2631
$shell = new Shell();
2732
$output->write($shell->run());
2833
}

0 commit comments

Comments
 (0)