Skip to content

Conversation

Gijsreyn
Copy link
Contributor

PR Summary

This pull request adds the skip() function, including reference documentation.

PR Context

Partially addresses #57

@Gijsreyn Gijsreyn mentioned this pull request Aug 29, 2025
93 tasks
@SteveL-MSFT SteveL-MSFT requested a review from Copilot August 30, 2025 00:36
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new skip() function to the DSC library that returns elements/characters from an array or string after skipping a specified number from the start.

  • Implements the skip() function for both arrays and strings
  • Adds comprehensive test coverage with unit tests and integration tests
  • Includes complete reference documentation with examples

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
dsc_lib/src/functions/skip.rs Implements the Skip function with array/string support and validation
dsc_lib/src/functions/mod.rs Registers the new skip function in the function dispatcher
dsc_lib/locales/en-us.toml Adds localized error messages and descriptions for the skip function
dsc/tests/dsc_functions.tests.ps1 Adds PowerShell integration tests for various skip scenarios
docs/reference/schemas/config/functions/skip.md Complete documentation with syntax, examples, and parameter details

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@SteveL-MSFT
Copy link
Member

@Gijsreyn can you fix the merge conflict

@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Sep 2, 2025
Merged via the queue into PowerShell:main with commit 74a652f Sep 2, 2025
4 checks passed
@Gijsreyn Gijsreyn deleted the add-skip-function branch September 5, 2025 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants