From 3c938601f1bee62b3639e6840ede2db354ebd234 Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Sun, 26 May 2024 23:24:49 -0700 Subject: [PATCH] (doc) Add creation of doc for choco rule command With the release of Chocolatey CLI v2.3.0 there is a new command, choco rule, which is responsible for listing out the validation rules which are currently in play. This commit adds the creation of the docs for this new command via the GenerateDocs.ps1 file. --- GenerateDocs.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GenerateDocs.ps1 b/GenerateDocs.ps1 index 36b7197d9a..8bde26b1cc 100644 --- a/GenerateDocs.ps1 +++ b/GenerateDocs.ps1 @@ -25,6 +25,9 @@ $psModuleLocation = [System.IO.Path]::GetFullPath("$thisDirectory\src\chocolatey $docsFolder = [System.IO.Path]::GetFullPath("$thisDirectory\docs\generated") $mergedDirectory = [System.IO.Path]::GetFullPath("$thisDirectory\code_drop\temp\_PublishedApps\choco_merged") $chocoExe = "$mergedDirectory\choco.exe" + +Write-Host "Running choco.exe from $chocoExe" + $lineFeed = "`r`n" $sourceLocation = 'https://github.com/chocolatey/choco/blob/master/' $sourceCommands = $sourceLocation + 'src/chocolatey/infrastructure.app/commands' @@ -599,6 +602,7 @@ The following are experimental or use not recommended: Generate-CommandReference 'Optimize' '90' Generate-CommandReference 'Outdated' '100' Generate-CommandReference 'Pin' '110' + Generate-CommandReference 'Rule' '115' Generate-CommandReference 'Search' '120' Generate-CommandReference 'SetApiKey' '130' Generate-CommandReference 'Source' '140'