-
Notifications
You must be signed in to change notification settings - Fork 52
Add skip() function #1085
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add skip() function #1085
Conversation
There was a problem hiding this 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.
b1c6e97
to
36e7df1
Compare
…tion-methods into add-skip-function
@Gijsreyn can you fix the merge conflict |
…into add-skip-function
PR Summary
This pull request adds the
skip()
function, including reference documentation.PR Context
Partially addresses #57