add documentation

This commit is contained in:
Dmitry Shibanov
2020-07-06 10:42:34 +03:00
parent 50ed8f72e1
commit bf7da363eb
2 changed files with 7 additions and 1 deletions

View File

@@ -99,6 +99,7 @@ $markdown += New-MDList -Style Unordered -Lines @(
(Get-AzureDevopsExtVersion), (Get-AzureDevopsExtVersion),
(Get-AWSCLIVersion), (Get-AWSCLIVersion),
(Get-AWSSAMVersion), (Get-AWSSAMVersion),
(Get-AWSSessionManagerVersion),
(Get-AlibabaCLIVersion), (Get-AlibabaCLIVersion),
(Get-CloudFoundryVersion), (Get-CloudFoundryVersion),
(Get-HubVersion), (Get-HubVersion),

View File

@@ -146,7 +146,7 @@ function Get-AzCopyVersion {
} }
function Get-AzureDevopsExtVersion { function Get-AzureDevopsExtVersion {
$azureDevExtVersion = (az version | ConvertFrom-Json | Foreach{ $_."extensions" })."azure-devops" $azureDevExtVersion = (az version | ConvertFrom-Json | ForEach-Object { $_."extensions" })."azure-devops"
return "Azure DevOps CLI extension $azureDevExtVersion" return "Azure DevOps CLI extension $azureDevExtVersion"
} }
@@ -162,6 +162,11 @@ function Get-AWSSAMVersion {
return "AWS SAM CLI $awssamVersion" return "AWS SAM CLI $awssamVersion"
} }
function Get-AWSSessionManagerVersion {
$awsSessionManagerVersion = $(session-manager-plugin --version)
return "AWS Session Manager CLI $awsSessionManagerVersion"
}
function Get-AlibabaCLIVersion { function Get-AlibabaCLIVersion {
$(aliyun --version | Select-String "Alibaba Cloud Command Line Interface") -match "(?<version>\d+\.\d+\.\d+)" | Out-Null $(aliyun --version | Select-String "Alibaba Cloud Command Line Interface") -match "(?<version>\d+\.\d+\.\d+)" | Out-Null
$alicliVersion = $Matches.Version $alicliVersion = $Matches.Version