Commit c7f426a
authored
Review exit codes / prep for release (#15)
* Remove-FileList and Remove-DirectoryList — added a FailedCount property on their result object.
Previously the catch block called Write-Warning and Write-Error but neither bubbled up to the outer try/catch (the inner catch consumed the exception), so failures were invisible to the exit code logic. Now failures increment FailedCount and the error message is surfaced via Write-Warning with the exception message included for diagnostics.
Issue #11
* Updated comments explaining exit codes
* Opportunistic fix: -Whatif not displaying items that would be deleted
* Target working folder, not parent. Reversing an idea that seemed good at the time...
* Comments updated - problem in letting Claude edit
* Streamline parameters: -ExcludeDirectoryPattern replace -ExcludeDirPattern + -ExcludeDirectories
* Streamline parameters: -ExcludeDirectoryPattern replace -ExcludeDirPattern + -ExcludeDirectories
* Streamline parameters: -ExcludeDirectoryPattern replace -ExcludeDirPattern + -ExcludeDirectories
* Document supported exit codes in Readme for #111 parent f6af05d commit c7f426a
4 files changed
Lines changed: 114 additions & 135 deletions
File tree
- docs
- source
- tests/pwsh
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | 132 | | |
143 | 133 | | |
144 | 134 | | |
| |||
154 | 144 | | |
155 | 145 | | |
156 | 146 | | |
157 | | - | |
158 | | - | |
| 147 | + | |
| 148 | + | |
159 | 149 | | |
160 | 150 | | |
161 | 151 | | |
162 | | - | |
163 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
164 | 155 | | |
165 | 156 | | |
166 | 157 | | |
| |||
223 | 214 | | |
224 | 215 | | |
225 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
226 | 229 | | |
227 | 230 | | |
228 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
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 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
0 commit comments