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
feat(ir): add typed helper for DeleteFiles@1 (#1071)
Adds `delete_files_step()` to `src/compile/ir/tasks.rs` — a typed
factory for the ADO `DeleteFiles@1` task.
Required input (`Contents`) is a positional parameter; optional inputs
(`SourceFolder`, `RemoveSourceFolder`, `RemoveDotFiles`) are applied
via the existing `.with_input(…)` builder on the returned `TaskStep`.
Five unit tests are included covering:
- default (required-only) construction
- optional `SourceFolder`
- `RemoveSourceFolder` flag
- `RemoveDotFiles` flag
- multiline `Contents` patterns
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
/// Deletes files or folders matching one or more patterns from a source folder.
364
+
///
365
+
/// - `contents` — newline-separated glob patterns identifying the files or
366
+
/// folders to remove (e.g. `"**/*.tmp"` or `"dist\n*.log"`). This is the
367
+
/// only required input.
368
+
///
369
+
/// Optional inputs (applied with `.with_input(…)` on the returned value):
370
+
///
371
+
/// | Input key | Type | Default | Description |
372
+
/// |---|---|---|---|
373
+
/// | `SourceFolder` | string | working directory | Root folder to delete from. Use `$(Build.ArtifactStagingDirectory)` to clean staging. |
374
+
/// | `RemoveSourceFolder` | bool string | `"false"` | Remove the `SourceFolder` itself after deleting its contents. Set to `"true"` and `contents` to `"*"` to wipe the whole folder. |
375
+
/// | `RemoveDotFiles` | bool string | `"false"` | Also delete files whose name starts with a dot. Defaults to `"false"` (dot files are preserved). |
0 commit comments