feat: add json output support and refactor format #2

Merged
vMohammad merged 3 commits from main into main 2026-03-10 18:30:21 +00:00
vMohammad commented 2026-03-09 15:29:07 +00:00 (Migrated from heliopolis.live)

add --json, example:

default:

> wl-mouse info
WLmouse BEAST MINI PRO (dongle)
  Mouse firmware:   1.0.2.7
  Dongle firmware:  1.0.2.7
  Battery:          27%
  Active profile:   1

with --json:

> wl-mouse -j info
{
  "name": "BEAST MINI PRO (dongle)",
  "firmware": "1.0.2.7",
  "dongle_firmware": "1.0.2.7",
  "battery_percent": 27,
  "charging": false,
  "serial_number": "",
  "active_profile": 1
}
add --json, example: default: ``` > wl-mouse info WLmouse BEAST MINI PRO (dongle) Mouse firmware: 1.0.2.7 Dongle firmware: 1.0.2.7 Battery: 27% Active profile: 1 ``` with `--json`: ``` > wl-mouse -j info { "name": "BEAST MINI PRO (dongle)", "firmware": "1.0.2.7", "dongle_firmware": "1.0.2.7", "battery_percent": 27, "charging": false, "serial_number": "", "active_profile": 1 } ```
vMohammad commented 2026-03-09 15:30:00 +00:00 (Migrated from heliopolis.live)

added 1 commit

Compare with previous version

added 1 commit <ul><li>0301a807 - bump</li></ul> [Compare with previous version](/creations/wl-mouse/-/merge_requests/2/diffs?diff_id=161&start_sha=d1f0a17d06bc640155239a4b883ea0551d5306a0)
creations commented 2026-03-10 18:29:30 +00:00 (Migrated from heliopolis.live)

added 2 commits

  • ef072ab5 - 1 commit from branch creations:main
  • 4fcdb0fe - fix merge conflicts, move types, duplicated dpi mapping, duplicated

Compare with previous version

added 2 commits <ul><li>ef072ab5 - 1 commit from branch <code>creations:main</code></li><li>4fcdb0fe - fix merge conflicts, move types, duplicated dpi mapping, duplicated</li></ul> [Compare with previous version](/creations/wl-mouse/-/merge_requests/2/diffs?diff_id=163&start_sha=0301a8071e27f39f78deb4fdaf880888c1416774)
creations commented 2026-03-10 18:30:21 +00:00 (Migrated from heliopolis.live)

mentioned in commit 2c8be21d83

mentioned in commit 2c8be21d834638f9b04bebfda50bbab9aeab2e30
creations (Migrated from heliopolis.live) merged commit 2c8be21d83 into main 2026-03-10 18:30:21 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
creations/wl-mouse!2
No description provided.