Skip to content

New Build Tasks and Utility Function for Maintenance Automation #1543

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

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

mdaneri
Copy link
Contributor

@mdaneri mdaneri commented Apr 22, 2025

What's New

This PR introduces four new Invoke-Build tasks and a utility function to streamline internal maintenance of the Pode project:


Format-FunctionHeaders

  • Automatically formats the headers of all functions within .ps1 files.
  • Enforces Pode's function header style and layout guidelines.
  • Useful for keeping public/internal scripts consistent and clean.

Refresh-HeaderFooter

  • Inserts or updates the file-level header and footer blocks in .ps1 files.
  • Ensures all source files follow Pode’s standard file documentation format.
  • Footer can be useful for file integrity or tooling metadata.

AutoMerge-LanguageFiles

  • Helps reduce manual overhead and common conflicts during Git merges.
  • Language files are frequent sources of merge issues due to unordered keys or manual edits.

Sort-LanguageFiles

  • Sorts all language files alphabetically by key.
  • Makes diffs cleaner and ensures consistent key order across locales.
  • Especially useful after merges or bulk string additions.

Group-LanguageResource (Function)

  • Internal function used to group and structure localized strings.
  • Supports the AutoMerge and Sort tasks with predictable formatting.
  • Groups resources by logical section (if present) to enhance readability.

These additions aim to reduce manual overhead, maintain codebase cleanliness, and ensure internationalization consistency across the Pode project.

@mdaneri mdaneri changed the title Pode locale automerge New Build Tasks and Utility Function for Maintenance Automation Apr 23, 2025
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