Feature: `--json` for Kiri's own commands (domains, k8s status, machine list, usb list, registry)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
Research direction
Start with the CLI argument parsing for kiri domains, kiri k8s status, kiri machine list, kiri usb list and kiri registry, and the daemon report functions the issue names: domains::report(), machine::list() and usb::list(). Add a --json flag that serializes those existing structures as one line of compact JSON, leaving exit codes unchanged. Done when each listed command prints valid JSON under --json and the existing kiri share --json behaviour still holds.
Written by the indexing model from the issue text.
Description
What I would like
kiri share already has --json. The rest of Kiri's own commands print only for a person, which makes them awkward in scripts:
kiri domains— parse the port and state out of padded columnskiri k8s status— the context, port and LAN settingkiri machine list— name, distro, state, IPkiri usb list— device, id, tty, namekiri registry insecure list/mirror list
$ kiri domains --json
{"http":{"port":80,"running":true,"serving":true},"https":{"port":443,"running":true,"serving":false}}
Why it is worth it
The window already asks the daemon for JSON (/kiri/domains, /kiri/k8s, …); every script that wants the same information today either scrapes columns or speaks the Docker API directly. CI and setup scripts (and kiri doctor above) would use the same output.
Shape
- One flag,
--json, on each of these; one line of compact JSON, exit code unchanged. - The daemon's own report shape is the natural body:
domains::report(),machine::list(),usb::list()already return it.
Not implemented here — filing it as a proposal first.
- Dominant language
- Rust
- Stars
- 7.5k
- Forks
- 329
- Avg merge
- 15h 49m
- Merged PRs (30d)
- 241
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from libracoder/kiri
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
libracoder/kiri#749 ·
Maintainers usually reply within 1 day
-
bench/api.sh exec test fails with curl exit 52, and --ignore-failure still records the timingsPossibly taken @Urdemonlord claimed this 1 day ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
libracoder/kiri#669 · 3 comments ·
Maintainers usually reply within 1 day
-
Parallel image loads from docker compose build fail with "No such file or directory (os error 2)"Open
Difficulty 4/5 3-5 days Newbie friendliness 22/100
libracoder/kiri#756 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 30/100
libracoder/kiri#754 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
libracoder/kiri#747 · 1 comment ·
Maintainers usually reply within 1 day
Similar issues
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaPossibly taken @lijy91 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
libnativeapi/nativeapi#53 · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area:mcp enhancement large-monorepo v0.34.1
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
awxkee/yuvutils-rs#149 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day