Commit 74c640a
fix: correct uint16 flag casting in cligen using flagReturnType
The cobra flag getter for uint16 returns int32 (no native uint16 flag).
Added flagReturnType() to determine the actual Go type returned by each
flag getter, and cast to the param type when they differ.
Verified on device: thermal, trace, egl info all work correctly.1 parent 6b9d31e commit 74c640a
4 files changed
Lines changed: 75 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
327 | 354 | | |
328 | 355 | | |
329 | 356 | | |
| |||
672 | 699 | | |
673 | 700 | | |
674 | 701 | | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
675 | 706 | | |
676 | 707 | | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
687 | 711 | | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
688 | 718 | | |
689 | 719 | | |
690 | 720 | | |
| |||
0 commit comments