89luca89 / 89luca89/distrobox

[Suggestion] Metadata and json output in distrobox v2

未關閉
#2,033 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
Go
星號
13k
分支
541
平均合併
20 小時 47 分鐘
30 天內合併 PR
4

描述

**Is your feature request related to a problem? Please describe.**
Hello, I'm the developer of DistroShelf, a gtk4 GUI for distrobox. I've just seen you guys are planning on doing a v2 rewrite. Could you add some metadata in the v2 version, so that external programs can more easily interface with distrobox?

**Describe the solution you'd like**
Podman (and I guess docker as well) supports the `--format json` argument for most commands. That provides the output as json. An external program such as DistroShelf could use that to interface with distrobox.

Also, a "v2" version metadata in the exported .desktop files would be helpful, so that external programs can list the exported files from distrobox v1, see that the version is different, and prompt the user to upgrade the old .desktop exports.

**Additional context**
distrobox is great! Thanks for building it. Being able to run programs from any distro is kind of magic

貢獻指南

開啟貢獻指南

研究方向

查看程式碼庫中的 distrobox 指令實作,可能位於 cmd/ 或類似目錄下,以了解目前如何格式化輸出。調查 podman/docker 如何為其指令實作 --format json。對於 .desktop 檔案的版本中繼資料,找出產生和匯出 .desktop 檔案的位置。新增 JSON 輸出將涉及修改多個指令處理程式,以支援結構化格式。透過使用新的 --format json 旗標執行 distrobox 指令,並確認輸出是有效的 JSON,來測試變更。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
bash, docker, go
領域
cli, developer-experience, tooling
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
描述清楚
新手友好度
55/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。