From bf7da363ebcdff27c2cc770a0f7fd4a75fdfa482 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Mon, 6 Jul 2020 10:42:34 +0300 Subject: [PATCH] add documentation --- .../scripts/SoftwareReport/SoftwareReport.Generator.ps1 | 1 + .../win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 b/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 index a87bde942..ca553f6f6 100644 --- a/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 +++ b/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 @@ -99,6 +99,7 @@ $markdown += New-MDList -Style Unordered -Lines @( (Get-AzureDevopsExtVersion), (Get-AWSCLIVersion), (Get-AWSSAMVersion), + (Get-AWSSessionManagerVersion), (Get-AlibabaCLIVersion), (Get-CloudFoundryVersion), (Get-HubVersion), diff --git a/images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 b/images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 index 5093a8039..a95272abf 100644 --- a/images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 +++ b/images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 @@ -146,7 +146,7 @@ function Get-AzCopyVersion { } 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" } @@ -162,6 +162,11 @@ function Get-AWSSAMVersion { return "AWS SAM CLI $awssamVersion" } +function Get-AWSSessionManagerVersion { + $awsSessionManagerVersion = $(session-manager-plugin --version) + return "AWS Session Manager CLI $awsSessionManagerVersion" +} + function Get-AlibabaCLIVersion { $(aliyun --version | Select-String "Alibaba Cloud Command Line Interface") -match "(?\d+\.\d+\.\d+)" | Out-Null $alicliVersion = $Matches.Version