Skip to content

Commit aabec61

Browse files
Ability to disable ASCII art (#107)
* ability to disable title * rename option --------- Co-authored-by: Duncan McClean <duncan@duncanmcclean.com>
1 parent c90439c commit aabec61

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/NewCommand.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ protected function configure()
9090
->addOption('repo', null, InputOption::VALUE_REQUIRED, 'Optionally specify the name of the GitHub repository')
9191
->addOption('force', 'f', InputOption::VALUE_NONE, 'Force install even if the directory already exists')
9292
->addOption('email', null, InputOption::VALUE_OPTIONAL, 'Creates a super user with this email address')
93-
->addOption('password', null, InputOption::VALUE_OPTIONAL, 'Password for the super user');
93+
->addOption('password', null, InputOption::VALUE_OPTIONAL, 'Password for the super user')
94+
->addOption('no-ascii-art', null, InputOption::VALUE_NONE, "Don't show the ASCII art title");
9495
}
9596

9697
protected function initialize(InputInterface $input, OutputInterface $output)
@@ -327,6 +328,10 @@ protected function validateArguments()
327328
*/
328329
protected function showStatamicTitleArt()
329330
{
331+
if ($this->input->getOption('no-ascii-art')) {
332+
return $this;
333+
}
334+
330335
$this->output->write(PHP_EOL.'<fg=#D4FF4C>
331336
█▀ ▀█▀ ▄▀█ ▀█▀ ▄▀█ █▀▄▀█ █ █▀▀
332337
▄█ ░█░ █▀█ ░█░ █▀█ █░▀░█ █ █▄▄</>'.PHP_EOL.PHP_EOL);

0 commit comments

Comments
 (0)