Skip to content

Commit

Permalink
(doc) Add creation of doc for choco rule command
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gep13 committed May 27, 2024
1 parent 7d47e4b commit 3c93860
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions GenerateDocs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 3c93860

Please sign in to comment.