Commit 1e5e3d4
feat(dream-cli): --json flag on list/status and document doctor --json (#1000)
* feat(dream-cli): --json flag on list/status and document doctor --json
'dream list --json' and 'dream status --json' previously were silently
dropped as unknown args — scripts piping to jq got parse errors. The
main case dispatch forwarded no arguments to cmd_list / cmd_status,
so any flag passed was ignored. Add explicit --json parsing:
- cmd_list --json emits a JSON array of {id, category, status}.
- cmd_status --json delegates to the existing cmd_status_json.
- Unknown flags on these subcommands now error out cleanly (exit 1).
- cmd_help mentions 'doctor --json' which was previously undocumented,
and advertises the new 'list --json' / 'status --json' flags.
'dream status-json' remains as a hyphenated alias for one release.
Platform impact: identical on macOS / Linux / Windows (WSL2) — no
platform branching.
* fix(dream-cli): escape list json strings
---------
Co-authored-by: Lightheartdevs <Lightheartdevs@users.noreply.github.com>1 parent 428dd6f commit 1e5e3d4
2 files changed
Lines changed: 116 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
78 | 90 | | |
79 | 91 | | |
80 | 92 | | |
| |||
658 | 670 | | |
659 | 671 | | |
660 | 672 | | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
661 | 688 | | |
662 | 689 | | |
663 | 690 | | |
| |||
1887 | 1914 | | |
1888 | 1915 | | |
1889 | 1916 | | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
1890 | 1925 | | |
1891 | 1926 | | |
1892 | 1927 | | |
1893 | 1928 | | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
1894 | 1956 | | |
1895 | 1957 | | |
1896 | 1958 | | |
| |||
3561 | 3623 | | |
3562 | 3624 | | |
3563 | 3625 | | |
3564 | | - | |
3565 | | - | |
3566 | | - | |
| 3626 | + | |
| 3627 | + | |
| 3628 | + | |
3567 | 3629 | | |
3568 | 3630 | | |
3569 | 3631 | | |
| |||
3592 | 3654 | | |
3593 | 3655 | | |
3594 | 3656 | | |
3595 | | - | |
| 3657 | + | |
3596 | 3658 | | |
3597 | 3659 | | |
3598 | 3660 | | |
| |||
3690 | 3752 | | |
3691 | 3753 | | |
3692 | 3754 | | |
3693 | | - | |
| 3755 | + | |
3694 | 3756 | | |
3695 | | - | |
| 3757 | + | |
3696 | 3758 | | |
3697 | 3759 | | |
3698 | 3760 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
0 commit comments