diff --git a/bin/tl.php b/bin/tl.php index 3f6c365..c860744 100755 --- a/bin/tl.php +++ b/bin/tl.php @@ -20,5 +20,6 @@ $container->setParameter('directory', $home); $container->set('container', $container); -$application = new Application('Time logger', '@package_version@', $container); +$application = new Application('Time logger ⏰🪵✨', '@package_version@', $container); +$application->setDefaultCommand('list'); $application->run(); diff --git a/box.json b/box.json index aa69b20..7c455bf 100644 --- a/box.json +++ b/box.json @@ -1,5 +1,4 @@ { - "chmod": "0755", "directories": [ "src" ], @@ -19,6 +18,5 @@ ], "git-version": "package_version", "main": "bin/tl.php", - "output": "tl.phar", - "stub": true + "output": "tl.phar" } diff --git a/src/Application.php b/src/Application.php index 4ae2a96..eafacd7 100644 --- a/src/Application.php +++ b/src/Application.php @@ -69,7 +69,7 @@ public function __construct($name, $version, ContainerBuilder $container) { * {@inheritdoc} */ public function doRun(InputInterface $input, OutputInterface $output) { - $name = $this->getCommandName($input); + $name = $this->getCommandName($input) ?: 'list'; $installing = FALSE; if ($name !== 'install' && $name !== 'configure') { if ($result = $this->setupCheck($output)) { diff --git a/tl.phar b/tl.phar index 268d686..b6d1127 100755 Binary files a/tl.phar and b/tl.phar differ