Skip to content

Commit 0dcf601

Browse files
committed
Various fixes
1 parent c85a39c commit 0dcf601

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

src/PHPCR/Shell/Config/ConfigManager.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,11 @@ public function initConfig(OutputInterface $output = null, $noInteraction = fals
214214
);
215215

216216
if (!$confirmed) {
217-
return;
217+
continue;
218218
}
219+
} else {
220+
$log(sprintf('<info>File</info> %s <info> already exists, not overwriting.', $destFile));
219221
}
220-
221-
$log(sprintf('<info>File</info> %s <info> already exists, not overwriting.', $destFile));
222-
return;
223222
}
224223

225224
$this->filesystem->copy($srcFile, $destFile);

src/PHPCR/Shell/Console/Command/Phpcr/SessionExportCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class SessionExportCommand extends BasePhpcrCommand
2222
protected function configure()
2323
{
2424
$this->setName('session:export');
25-
$this->setDescription('Export the to XML');
25+
$this->setDescription('Export the session to XML');
2626
$this->addArgument('absPath', InputArgument::REQUIRED, 'Path of node to export');
2727
$this->addArgument('file', InputArgument::REQUIRED, 'File to export to');
2828
$this->addOption('no-recurse', null, InputOption::VALUE_NONE, 'Do not recurse');

src/PHPCR/Shell/Console/Command/Shell/ConfigInitCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ public function execute(InputInterface $input, OutputInterface $output)
3333
{
3434
$this->output = $output;
3535
$configHelper = $this->get('config.manager');
36-
$configHelper->initConfig($output, $this->get('helper.question'), $input->getOption('no-interaction'));
36+
$configHelper->initConfig($output, $input->getOption('no-interaction'));
3737
}
3838
}

src/PHPCR/Shell/Console/Helper/ResultFormatterHelper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function formatQueryResult(QueryResultInterface $result, OutputInterface
8787

8888
$table->render($output);
8989

90-
if (true === $this->config['execution_time']['query']) {
90+
if (true === $this->config['show_execution_time_query']) {
9191
$output->writeln(sprintf(
9292
'%s rows in set (%s sec)',
9393
count($result->getRows()),

src/PHPCR/Shell/Resources/config.dist/alias.yml

+2
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,6 @@ versions: version:history {arg1}
5656

5757
# Session commands
5858
save: session:save
59+
s: session:save
5960
refresh: session:refresh
61+
r: session:refresh

0 commit comments

Comments
 (0)