You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$commandText=$commandText-creplace'^(Usage|Troubleshooting|Examples|Exit Codes|Connecting to Chocolatey.org|See It In Action|Alternative Sources|Resources|Packages.config|Scripting \/ Integration - Best Practices \/ Style Guide)','## $1'
210
+
$commandText=$commandText-creplace'^(DEPRECATION NOTICE|Usage|Troubleshooting|Examples|Exit Codes|Connecting to Chocolatey.org|See It In Action|Alternative Sources|Resources|Packages.config|Scripting \/ Integration - Best Practices \/ Style Guide)','## $1'
210
211
$commandText=$commandText-replace'^(Commands|How To Pass Options)','## $1'
@@ -351,6 +352,23 @@ function Generate-CommandReference($commandName, $order) {
351
352
352
353
$commandOutput+=@("---$lineFeed")
353
354
$commandOutput+=@("<!-- This file is automatically generated based on output from $($sourceCommands)/Chocolatey$($commandName)Command.cs using $($sourceLocation)GenerateDocs.ps1. Contributions are welcome at the original location(s). If the file is not found, it is not part of the open source edition of Chocolatey or the name of the file is different. --> $lineFeed")
355
+
356
+
$commandOutput+=@(@"
357
+
> :memo: **WARNING** SHIM DEPRECATION
358
+
>
359
+
> In version 1.0.0 of Chocolatey Open Source we have deprecated the following shims/shortcuts:
360
+
>
361
+
> - `chocolatey` (Alias for `choco`)
362
+
> - `cinst` (Shortcut for `choco install`)
363
+
> - `cpush` (Shortcut for `choco push`)
364
+
> - `cuninst` (Shortcut for `cuninst`)
365
+
> - `cup` (Shortcut for `choco upgrade`)
366
+
>
367
+
> We recommend that any scripts calling these shims be updated to use the full command, as
368
+
> these shims will be removed in Chocolatey v2.0.0.
$commandOutput+=@("$lineFeed$lineFeed*NOTE:* This documentation has been automatically generated from ``choco $($commandName.ToLower()) -h``. $lineFeed")
0 commit comments