Skip to content

Commit

Permalink
connectkustocommand ongoing
Browse files Browse the repository at this point in the history
  • Loading branch information
santisq committed Dec 16, 2024
1 parent 261603b commit d04fdc5
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PSUsing Workflow
name: PowerShellKusto Workflow
on:
push:
branches:
Expand Down
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"-NoProfile",
"-Command",
". ./tools/prompt.ps1;",
"Import-Module ./output/PSUsing"
"Import-Module ./output/PowerShellKusto"
],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
Expand Down
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
18 changes: 12 additions & 6 deletions module/PowerShellKusto.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down Expand Up @@ -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 = @()
Expand All @@ -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 = ''
Expand Down
2 changes: 1 addition & 1 deletion src/PowerShellKusto/PowerShellKusto.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<Nullable>enable</Nullable>
<AssemblyName>PowerShellKusto</AssemblyName>
<LangVersion>latest</LangVersion>
Expand Down
4 changes: 3 additions & 1 deletion tools/InvokeBuild.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ task Clean {

task BuildDocs {
$helpParams = $ProjectInfo.Documentation.GetParams()
$null = New-ExternalHelp @helpParams
if ($helpParams) {
$null = New-ExternalHelp @helpParams
}
}

task BuildManaged {
Expand Down
2 changes: 1 addition & 1 deletion tools/ProjectBuilder/ProjectInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down

0 comments on commit d04fdc5

Please sign in to comment.