Commit a951970
committed
(#3817) Append download tab completion options
Add comprehensive completion entries for the `choco download` command
to TabExpansion and update tests to assert those completions when the
licensed/pro features are available.
- Extend commandOptions.download with many download-related flags:
allow-empty-checksums, allow-empty-checksums-secure,
ignore-checksum, ignore-dependencies-from-source, require-checksums,
and other existing download switches. This ensures the tab completion
engine exposes all pro and non-pro download options.
- Add a Pester test case (Should list completions for downolad (Licensed))
that verifies the completion list includes the newly added download
switches. The test is skipped when the license flag ($isLicensed) is
not set, preserving existing test behavior.
This change fixes missing completions for `choco download`, improving the
shell UX for licensed users and keeping tests aligned with available
pro flags.1 parent 92d8bf0 commit a951970
File tree
2 files changed
+36
-1
lines changed- src/chocolatey.resources/helpers
- tests/pester-tests
2 files changed
+36
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
103 | 138 | | |
104 | 139 | | |
105 | 140 | | |
| |||
0 commit comments