Skip to content

feat!: rename profile.switch command to profile#54

Merged
wizzomafizzo merged 1 commit into
mainfrom
feat/rename-profile-switch-command
Jul 14, 2026
Merged

feat!: rename profile.switch command to profile#54
wizzomafizzo merged 1 commit into
mainfrom
feat/rename-profile-switch-command

Conversation

@wizzomafizzo

@wizzomafizzo wizzomafizzo commented Jul 14, 2026

Copy link
Copy Markdown
Member

Renames the ZapScript profile-switch command from **profile.switch to **profile, and the exported constant ZapScriptCmdProfileSwitch to ZapScriptCmdProfile. profile.clear is unchanged.

The profiles feature is unreleased in zaparoo-core (PR ZaparooProject/zaparoo-core#950), so no cards or consumers use the old command name yet — no alias or deprecation path is included.

BREAKING CHANGE: ZapScriptCmdProfileSwitch no longer exists; use ZapScriptCmdProfile. zaparoo-core's device-profiles branch has been updated to match and currently builds against this via a temporary replace directive, pending a tagged release.

Summary by CodeRabbit

  • Changes
    • Updated profile command naming for improved consistency.
    • Replaced the profile-switch command with the standardized profile command.
    • Kept the profile-clear command unchanged.

Renames the ZapScript profile-switch command from **profile.switch to
**profile, and the exported constant ZapScriptCmdProfileSwitch to
ZapScriptCmdProfile. profile.clear is unchanged.

The profiles feature is unreleased in zaparoo-core, so no cards or
consumers use the old command name yet.

BREAKING CHANGE: ZapScriptCmdProfileSwitch no longer exists; use
ZapScriptCmdProfile.
@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 0bd31b4d-fe86-4140-b37a-abd4da14d4a3

📥 Commits

Reviewing files that changed from the base of the PR and between 5b38094 and f508490.

📒 Files selected for processing (1)
  • models.go

📝 Walkthrough

Walkthrough

The exported profile command constants in models.go replace ZapScriptCmdProfileSwitch with ZapScriptCmdProfile; ZapScriptCmdProfileClear remains unchanged.

Changes

Profile command constants

Layer / File(s) Summary
Update profile command constants
models.go
Replaces the "profile.switch" constant with ZapScriptCmdProfile using "profile", while retaining ZapScriptCmdProfileClear.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main breaking change: renaming the profile-switch command to profile.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/rename-profile-switch-command

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Jul 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@wizzomafizzo wizzomafizzo merged commit 3ae969e into main Jul 14, 2026
12 checks passed
@wizzomafizzo wizzomafizzo deleted the feat/rename-profile-switch-command branch July 14, 2026 02:51
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