option('write')) { $version = $this->createVersionNumber($cfg); $cfg['build']['number'] = $version; file_put_contents($version_file, Yaml::dump($cfg, 4, 2)); } # Only show the major.minor.patch version if($this->option('base-only')) { $version = 'v'.$cfg['current']['major'] . '.' .$cfg['current']['minor'] . '.' .$cfg['current']['patch']; print $version; } else { $this->call('version:show', [ '--format' => 'compact', '--suppress-app-name' => true ]); } } }