Skip to content

Refactor .pf task files to delegate to bash scripts in bashpf/#159

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/update-pf-files-to-call-bash
Draft

Refactor .pf task files to delegate to bash scripts in bashpf/#159
Copilot wants to merge 3 commits intomainfrom
copilot/update-pf-files-to-call-bash

Conversation

Copy link
Contributor

Copilot AI commented Mar 1, 2026

Description

The .pf task system had inline shell commands that were fragile and difficult to maintain. All 77 tasks across core.pf, secure.pf, maint.pf, and workflows.pf now delegate to individual bash scripts in a new bashpf/ directory.

Changes:

  • Created bashpf/ with 77 executable bash scripts (one per task)
  • Updated all .pf files to call bash bashpf/<task-name>.sh instead of inline commands
  • Fixed variable quoting in workflow scripts to prevent word-splitting issues

Before:

task build-setup
  describe Bootstrap toolchain & environment
  shell bash scripts/maintenance/toolchain-check.sh
end

After:

task build-setup
  describe Bootstrap toolchain & environment
  shell bash bashpf/build-setup.sh
end

Where bashpf/build-setup.sh contains:

#!/usr/bin/env bash
bash scripts/maintenance/toolchain-check.sh
  • Breaking change?
  • Impacts security?
  • Includes tests?

How This Was Tested

  • Verified all 77 tasks load correctly via ./pf.py list
  • Executed maint-docs and kernel-profile-list tasks successfully
  • Code review passed with variable quoting fixes applied

Integration Instructions

N/A - Transparent change to existing task execution. All task names and behaviors remain identical.

Original prompt

This section details on the original issue you should resolve

<issue_title>pfyfile .pf files all call a bash script</issue_title>
<issue_description>OKK i'm sorry brt most pf files don't work at all.

We're switching ALL pf tasks to just call bash scripts in a dir called bashpf at the root of the repo.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits March 1, 2026 19:40
… to call them

Co-authored-by: P4X-ng <223870169+P4X-ng@users.noreply.github.com>
Co-authored-by: P4X-ng <223870169+P4X-ng@users.noreply.github.com>
Copilot AI changed the title [WIP] Update pf files to call bash scripts Refactor .pf task files to delegate to bash scripts in bashpf/ Mar 1, 2026
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.

pfyfile .pf files all call a bash script

2 participants