⬆️ kvm

This commit is contained in:
anurse 2015-03-04 14:58:45 -08:00
parent 35ac526aec
commit 83ed0c3841
3 changed files with 1584 additions and 1132 deletions

10
kvm.cmd
View File

@ -1,8 +1,10 @@
@Echo off
PowerShell -NoProfile -NoLogo -ExecutionPolicy unrestricted -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture = '';& '%~dp0kvm.ps1' %*"
set KVM_CMD_PATH_FILE="%USERPROFILE%\.k\temp-set-envvars.cmd"
IF EXIST "%USERPROFILE%\.k\temp-set-envvars.cmd" (
CALL "%USERPROFILE%\.k\temp-set-envvars.cmd"
DEL "%USERPROFILE%\.k\temp-set-envvars.cmd"
PowerShell -NoProfile -NoLogo -ExecutionPolicy unrestricted -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture = '';$CmdPathFile='%KVM_CMD_PATH_FILE%';& '%~dp0kvm.ps1' %*"
IF EXIST "%KVM_CMD_PATH_FILE%" (
CALL "%KVM_CMD_PATH_FILE%"
DEL "%KVM_CMD_PATH_FILE%"
)

1700
kvm.ps1

File diff suppressed because it is too large Load Diff

8
kvm.sh
View File

@ -2,7 +2,8 @@
# Source this file from your .bash-profile or script to use
# "Constants"
_KVM_BUILDNUMBER="10321"
_KVM_BUILDNUMBER="t150304224119"
_KVM_AUTHORS="Microsoft Open Technologies, Inc."
_KVM_RUNTIME_PACKAGE_NAME="kre"
_KVM_RUNTIME_FRIENDLY_NAME="K Runtime"
_KVM_RUNTIME_SHORT_NAME="KRE"
@ -12,6 +13,8 @@ _KVM_VERSION_MANAGER_NAME="K Version Manager"
_KVM_DEFAULT_FEED="https://www.myget.org/F/aspnetvnext/api/v2"
_KVM_HOME_VAR_NAME="KRE_HOME"
[ "$_KVM_BUILDNUMBER" = "{{*" ] && _KVM_BUILDNUMBER="HEAD"
__kvm_has() {
type "$1" > /dev/null 2>&1
return $?
@ -170,7 +173,8 @@ kvm()
case $1 in
"help" )
echo ""
echo "$_KVM_VERSION_MANAGER_NAME - Build $_KVM_BUILDNUMBER"
echo "$_KVM_VERSION_MANAGER_NAME - Version 1.0.0-$_KVM_BUILDNUMBER"
[ "$_KVM_AUTHORS" != "{{*" ] && echo "By $_KVM_AUTHORS"
echo ""
echo "USAGE: $_KVM_COMMAND_NAME <command> [options]"
echo ""