Skip to content

feat(apps:devices): support multiple --device-id flags for forcechannel and unforcechannel#132

Open
robingenz wants to merge 1 commit intomainfrom
feat/multi-device-forcechannel
Open

feat(apps:devices): support multiple --device-id flags for forcechannel and unforcechannel#132
robingenz wants to merge 1 commit intomainfrom
feat/multi-device-forcechannel

Conversation

@robingenz
Copy link
Member

Summary

  • Add UpdateAppDevicesDto type and updateMany service method for bulk device updates via PATCH /v1/apps/{appId}/devices?ids=...
  • Change --device-id option from single string to array in both forcechannel and unforcechannel commands
  • Adjust success messages to reflect device count

Copilot AI review requested due to automatic review settings March 24, 2026 08:41
@robingenz robingenz self-assigned this Mar 24, 2026
@robingenz robingenz added the feature Feature label Mar 24, 2026
Copy link
Contributor

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.

Pull request overview

This PR extends the apps/devices CLI commands to support bulk forcing/unforcing a channel across multiple devices, using a new bulk update DTO and service method that targets PATCH /v1/apps/{appId}/devices?ids=....

Changes:

  • Added UpdateAppDevicesDto to represent bulk device updates.
  • Introduced appDevicesService.updateMany() to PATCH multiple devices at once via an ids query param.
  • Updated forcechannel and unforcechannel to accept repeated --device-id values and adjusted success messaging to reflect device count.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/types/app-device.ts Adds a DTO type for bulk device updates.
src/services/app-devices.ts Adds updateMany() service method to PATCH multiple devices by ids query param.
src/commands/apps/devices/forcechannel.ts Accepts multiple --device-id values and uses updateMany() for bulk forcing.
src/commands/apps/devices/unforcechannel.ts Accepts multiple --device-id values and uses updateMany() for bulk unforcing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@robingenz
Copy link
Member Author

npm i @capawesome/cli@4.6.0-dev.a84b1ba.1774341927

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants