⬆️ dnvm.ps1, dnvm.cmd, dnvm.sh

Source: aspnet/dnvm@697fd273a3
This commit is contained in:
ASP.NET Push Bot 2015-09-08 13:11:07 -07:00 committed by unknown
parent b03c00d1d9
commit 8c3dd150b5
2 changed files with 21 additions and 2 deletions

View File

@ -67,7 +67,7 @@ function _WriteOut {
### Constants
$ProductVersion="1.0.0"
$BuildVersion="beta8-15508"
$BuildVersion="beta8-15509"
$Authors="Microsoft Open Technologies, Inc."
# If the Version hasn't been replaced...
@ -984,6 +984,14 @@ filter ColorActive {
}
}
<#
.SYNOPSIS
Displays the DNVM version.
#>
function dnvm-version {
_WriteOut "$FullVersion"
}
<#
.SYNOPSIS
Lists available runtimes

13
dnvm.sh
View File

@ -2,7 +2,7 @@
# Source this file from your .bash-profile or script to use
# "Constants"
_DNVM_BUILDNUMBER="beta8-15508"
_DNVM_BUILDNUMBER="beta8-15509"
_DNVM_AUTHORS="Microsoft Open Technologies, Inc."
_DNVM_RUNTIME_PACKAGE_NAME="dnx"
_DNVM_RUNTIME_FRIENDLY_NAME=".NET Execution Environment"
@ -400,6 +400,10 @@ __dnvm_description() {
}
__dnvm_version() {
echo "1.0.0-$_DNVM_BUILDNUMBER"
}
__dnvm_help() {
__dnvm_description
printf "%b\n" "${Cya}USAGE:${Yel} $_DNVM_COMMAND_NAME <command> [options] ${RCol}"
@ -471,6 +475,9 @@ __dnvm_help() {
printf "%b\n" "${Yel}$_DNVM_COMMAND_NAME [help|-h|-help|--help] ${RCol}"
echo " displays this help text."
echo ""
printf "%b\n" "${Yel}$_DNVM_COMMAND_NAME [version|-v|-version|--version] ${RCol}"
echo " print the dnvm version."
echo ""
printf "%b\n" "${Yel}$_DNVM_COMMAND_NAME update-self ${RCol}"
echo " updates dnvm itself."
}
@ -490,6 +497,10 @@ dnvm()
__dnvm_help
;;
"version"|"-v"|"-version"|"--version" )
__dnvm_version
;;
"update-self" )
__dnvm_update_self
;;