Skip to content

Conversation

MariusStorhaug
Copy link
Member

Description

This pull request includes several changes to the Get-AstScript function in src/functions/public/Core/Get-AstScript.ps1 to enhance its functionality, and the addition of new sample scripts for testing. The most important changes include updating the parameter handling to support multiple paths and recursive directory processing, as well as updating the tests accordingly.

Enhancements to Get-AstScript function:

  • Added examples to the Get-AstScript function documentation to illustrate usage with multiple paths and recursive directory processing.
  • Updated the Path parameter to accept an array of strings and added a Recurse switch parameter for recursive directory processing.
  • Modified the process block to handle directories and files appropriately, including recursive processing of directories.

Updates to tests:

  • Removed outdated tests from tests/AST.Tests.ps1 to streamline the testing process.

New sample scripts for testing:

  • Added TestScript1.ps1 to test a function with a string parameter.
  • Added TestScript2.ps1 to test a function with an integer parameter.
  • Added TestScript3.ps1 to test a function with a boolean parameter.

Type of change

  • 📖 [Docs]
  • 🪲 [Fix]
  • 🩹 [Patch]
  • ⚠️ [Security fix]
  • 🚀 [Feature]
  • 🌟 [Breaking change]

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

@Copilot Copilot AI review requested due to automatic review settings March 9, 2025 21:00
Copy link

@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.

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

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.

1 participant