Skip to content

fix(platform): cross-platform Taskfile preconditions#94

Merged
JonZeolla merged 2 commits intomainfrom
more-tweaking
Apr 6, 2026
Merged

fix(platform): cross-platform Taskfile preconditions#94
JonZeolla merged 2 commits intomainfrom
more-tweaking

Conversation

@JonZeolla
Copy link
Copy Markdown
Member

Summary

  • Replace which uv with uv --version for Windows PowerShell compatibility
  • Replace test -d .git with git rev-parse --git-dir (cross-platform)
  • Replace command -v gh and [[ ]] bash-isms with POSIX-compatible alternatives

Test plan

  • Verify task init works on Windows (PowerShell)
  • Verify task init still works on macOS/Linux
  • Verify task release GH_TOKEN detection works on both platforms

🤖 Generated with Claude Code

…orm alternatives

Replaces `which`, `test -d`, `command -v`, and `[[ ]]` with portable
equivalents so Taskfile preconditions work on Windows (PowerShell).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@ai-coding-guardrails ai-coding-guardrails bot left a comment

Choose a reason for hiding this comment

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

Nice work! 😎

I didn't find anything of concern

Reviewed with 🤟 by Zenable

On Windows, use `uv self update` instead of skipping the uv upgrade
entirely. macOS/Linux continues to use `brew upgrade uv`.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@JonZeolla JonZeolla enabled auto-merge (squash) April 6, 2026 12:32
@JonZeolla JonZeolla merged commit 420283a into main Apr 6, 2026
6 checks passed
@JonZeolla JonZeolla deleted the more-tweaking branch April 6, 2026 12:46
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