Skip to content

Commit 8c3dd15

Browse files
ASP.NET Push Botunknown
authored andcommitted
⬆️ dnvm.ps1, dnvm.cmd, dnvm.sh
Source: aspnet/dnvm@697fd27
1 parent b03c00d commit 8c3dd15

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

dnvm.ps1

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function _WriteOut {
6767

6868
### Constants
6969
$ProductVersion="1.0.0"
70-
$BuildVersion="beta8-15508"
70+
$BuildVersion="beta8-15509"
7171
$Authors="Microsoft Open Technologies, Inc."
7272

7373
# If the Version hasn't been replaced...
@@ -984,6 +984,14 @@ filter ColorActive {
984984
}
985985
}
986986

987+
<#
988+
.SYNOPSIS
989+
Displays the DNVM version.
990+
#>
991+
function dnvm-version {
992+
_WriteOut "$FullVersion"
993+
}
994+
987995
<#
988996
.SYNOPSIS
989997
Lists available runtimes

dnvm.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Source this file from your .bash-profile or script to use
33

44
# "Constants"
5-
_DNVM_BUILDNUMBER="beta8-15508"
5+
_DNVM_BUILDNUMBER="beta8-15509"
66
_DNVM_AUTHORS="Microsoft Open Technologies, Inc."
77
_DNVM_RUNTIME_PACKAGE_NAME="dnx"
88
_DNVM_RUNTIME_FRIENDLY_NAME=".NET Execution Environment"
@@ -400,6 +400,10 @@ __dnvm_description() {
400400

401401
}
402402

403+
__dnvm_version() {
404+
echo "1.0.0-$_DNVM_BUILDNUMBER"
405+
}
406+
403407
__dnvm_help() {
404408
__dnvm_description
405409
printf "%b\n" "${Cya}USAGE:${Yel} $_DNVM_COMMAND_NAME <command> [options] ${RCol}"
@@ -471,6 +475,9 @@ __dnvm_help() {
471475
printf "%b\n" "${Yel}$_DNVM_COMMAND_NAME [help|-h|-help|--help] ${RCol}"
472476
echo " displays this help text."
473477
echo ""
478+
printf "%b\n" "${Yel}$_DNVM_COMMAND_NAME [version|-v|-version|--version] ${RCol}"
479+
echo " print the dnvm version."
480+
echo ""
474481
printf "%b\n" "${Yel}$_DNVM_COMMAND_NAME update-self ${RCol}"
475482
echo " updates dnvm itself."
476483
}
@@ -490,6 +497,10 @@ dnvm()
490497
__dnvm_help
491498
;;
492499

500+
"version"|"-v"|"-version"|"--version" )
501+
__dnvm_version
502+
;;
503+
493504
"update-self" )
494505
__dnvm_update_self
495506
;;

0 commit comments

Comments
 (0)