diff --git a/app/Commands/Host.php b/app/Commands/Host.php index 618c4c6..d3f0c39 100644 --- a/app/Commands/Host.php +++ b/app/Commands/Host.php @@ -157,12 +157,26 @@ private function updateFromOptions(){ } private function interrogate(){ - if(!$this->useDefaults) { + + $projectName = 'project-' . time(); + + + if($this->useDefaults){ + + if(is_null($this->name)) { + $this->name = $projectName; + } + $this->folderSuffix = $this->config->getFolderSuffix(); + $this->folderSuffix = rtrim($this->folderSuffix, "/"); + $this->database = $this->defaultDatabaseNameFromKey($this->name); + $this->domain = $this->defaultDomainNameFromKey($this->name); + + }else{ if(is_null($this->name)){ $this->name = $this->interrogator->ask( 'What is your project\'s name?', - 'project-' . time() + $projectName ); }