Commit 3895d0d
committed
fix: address fourth round of Copilot PR review feedback
- Use Path.is_relative_to() instead of str.startswith() for proper
path containment check in _reconcile_composed_commands()
- Fix install rollback to undo all side effects: unregister commands
and skills, remove copied preset dir before dropping registry entry
- Validate wrap placeholder presence: raise PresetValidationError when
wrapper content is missing {CORE_TEMPLATE} or $CORE_SCRIPT
- Guard python3 availability in PowerShell Resolve-TemplateContent
with Get-Command check before invoking
- Handle missing PyYAML gracefully in both bash and PowerShell: check
'import yaml' explicitly and fall back to replace/convention path1 parent 9510e71 commit 3895d0d
File tree
3 files changed
+38
-7
lines changed- scripts
- bash
- powershell
- src/specify_cli
3 files changed
+38
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
| 422 | + | |
422 | 423 | | |
423 | 424 | | |
424 | | - | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
425 | 431 | | |
426 | 432 | | |
427 | 433 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | | - | |
| 404 | + | |
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
409 | 414 | | |
410 | 415 | | |
411 | 416 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
637 | 637 | | |
638 | 638 | | |
639 | 639 | | |
640 | | - | |
| 640 | + | |
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
| |||
1170 | 1170 | | |
1171 | 1171 | | |
1172 | 1172 | | |
1173 | | - | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
1174 | 1186 | | |
1175 | 1187 | | |
1176 | 1188 | | |
| |||
2276 | 2288 | | |
2277 | 2289 | | |
2278 | 2290 | | |
2279 | | - | |
| 2291 | + | |
2280 | 2292 | | |
2281 | | - | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
| 2297 | + | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
2282 | 2302 | | |
2283 | 2303 | | |
0 commit comments