From d04fdc50bc89861f565d93b5287684088496bcf6 Mon Sep 17 00:00:00 2001 From: Santiago Squarzon Date: Mon, 16 Dec 2024 15:50:51 -0300 Subject: [PATCH] connectkustocommand ongoing --- .github/workflows/ci.yml | 2 +- .vscode/launch.json | 2 +- .vscode/tasks.json | 2 +- module/PowerShellKusto.psd1 | 18 ++++++++++++------ src/PowerShellKusto/PowerShellKusto.csproj | 2 +- tools/InvokeBuild.ps1 | 4 +++- tools/ProjectBuilder/ProjectInfo.cs | 2 +- 7 files changed, 20 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7649731..3d81ee0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: PSUsing Workflow +name: PowerShellKusto Workflow on: push: branches: diff --git a/.vscode/launch.json b/.vscode/launch.json index e57bdff..9925692 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -14,7 +14,7 @@ "-NoProfile", "-Command", ". ./tools/prompt.ps1;", - "Import-Module ./output/PSUsing" + "Import-Module ./output/PowerShellKusto" ], "cwd": "${workspaceFolder}", "stopAtEntry": false, diff --git a/.vscode/tasks.json b/.vscode/tasks.json index ae1f93a..65c48ca 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -23,7 +23,7 @@ "type": "shell", "args": [ "-Command", - "Import-Module ${workspaceFolder}/output/PSUsing; Import-Module ${workspaceFolder}/tools/Modules/platyPS; Update-MarkdownHelpModule ${workspaceFolder}/docs/en-US -AlphabeticParamsOrder -RefreshModulePage -UpdateInputOutput" + "Import-Module ${workspaceFolder}/output/PowerShellKusto; Import-Module ${workspaceFolder}/tools/Modules/platyPS; Update-MarkdownHelpModule ${workspaceFolder}/docs/en-US -AlphabeticParamsOrder -RefreshModulePage -UpdateInputOutput" ], "problemMatcher": [], "dependsOn": [ diff --git a/module/PowerShellKusto.psd1 b/module/PowerShellKusto.psd1 index 724a80c..9d72aed 100644 --- a/module/PowerShellKusto.psd1 +++ b/module/PowerShellKusto.psd1 @@ -8,7 +8,7 @@ @{ # Script module or binary module file associated with this manifest. - RootModule = 'bin/netstandard2.0/PSUsing.dll' + RootModule = 'bin/netstandard2.0/PowerShellKusto.dll' # Version number of this module. ModuleVersion = '1.0.0' @@ -29,7 +29,7 @@ Copyright = '(c) Santiago Squarzon. All rights reserved.' # Description of the functionality provided by this module - Description = 'PowerShell Module that wraps Microsoft.Azure.Kusto.Tools' + Description = 'PowerShell Module that wraps Microsoft.Azure.Kusto.Data & Microsoft.Azure.Kusto.Ingest' # Minimum version of the PowerShell engine required by this module PowerShellVersion = '5.1' @@ -71,7 +71,9 @@ FunctionsToExport = @() # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. - CmdletsToExport = @() + CmdletsToExport = @( + 'Connect-Kusto' + ) # Variables to export from this module VariablesToExport = @() @@ -93,17 +95,21 @@ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. Tags = @( - 'powershell' 'csharp' + 'powershell' + 'adx' 'kusto' 'kql' + 'azuredataexplorer' + 'kusto.data' + 'kusto.ingest' ) # A URL to the license for this module. - LicenseUri = 'https://www.github.com/santisq/KustoTools/blob/main/LICENSE' + LicenseUri = 'https://www.github.com/santisq/PowerShellKusto/blob/main/LICENSE' # A URL to the main website for this project. - ProjectUri = 'https://www.github.com/santisq/KustoTools' + ProjectUri = 'https://www.github.com/santisq/PowerShellKusto' # A URL to an icon representing this module. # IconUri = '' diff --git a/src/PowerShellKusto/PowerShellKusto.csproj b/src/PowerShellKusto/PowerShellKusto.csproj index b9734fe..4fe74b3 100644 --- a/src/PowerShellKusto/PowerShellKusto.csproj +++ b/src/PowerShellKusto/PowerShellKusto.csproj @@ -1,7 +1,7 @@  - netstandard2.0 + netstandard2.0 enable PowerShellKusto latest diff --git a/tools/InvokeBuild.ps1 b/tools/InvokeBuild.ps1 index 4ece54d..f92bda7 100644 --- a/tools/InvokeBuild.ps1 +++ b/tools/InvokeBuild.ps1 @@ -10,7 +10,9 @@ task Clean { task BuildDocs { $helpParams = $ProjectInfo.Documentation.GetParams() - $null = New-ExternalHelp @helpParams + if ($helpParams) { + $null = New-ExternalHelp @helpParams + } } task BuildManaged { diff --git a/tools/ProjectBuilder/ProjectInfo.cs b/tools/ProjectBuilder/ProjectInfo.cs index b1f7b2c..1eb5f4c 100644 --- a/tools/ProjectBuilder/ProjectInfo.cs +++ b/tools/ProjectBuilder/ProjectInfo.cs @@ -125,7 +125,7 @@ private static string[] GetTargetFrameworks(string path) return xmlDocument .SelectSingleNode("Project/PropertyGroup/TargetFrameworks") .InnerText - .Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries); + .Split([';'], StringSplitOptions.RemoveEmptyEntries); } private static string GetBuildPath(string path) =>