From fefc6bc22a537234a6f3f98ac572253e4c22dd2b Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Thu, 8 Mar 2018 08:16:42 -0600 Subject: [PATCH] Add back in --base-only to version generation --- app/Console/Commands/Version.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/Version.php b/app/Console/Commands/Version.php index d86349dc..6794acf6 100644 --- a/app/Console/Commands/Version.php +++ b/app/Console/Commands/Version.php @@ -44,6 +44,13 @@ class Version extends BaseCommand file_put_contents($version_file, Yaml::dump($cfg, 4, 2)); } - print $version."\n"; + # 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 . "\n"; } }