[FEAT] Support SDKMAN! Package Count
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先定位现有的软件包管理器计数实现,并沿着它们的入口点为新增计数添加实现。检查如何读取环境变量 SDKMAN_CANDIDATES_DIR,然后验证只有非空的 candidate 目录会被计数,并且当变量不存在或为空时,会报告 SDKMAN! 不可用。
由索引模型根据 Issue 内容生成。
描述
Description
Add SDKMAN! package count to the output.
Motivation
I think this falls under the same category as other package managers. SDKMAN! is popular and widely used across multiple Unix platforms to install system-wide SDKs and frameworks.
Additional context
This should be relatively easy and useful for those using SDKMAN! to install SDKs and packages. Here's how to detect the count:
- Get the candidates' directory from the variable
$SDKMAN_CANDIDATES_DIR. If it is empty, then SDKMAN! is not installed. - Count the number of non-empty directories inside
$SDKMAN_CANDIDATES_DIR. SDKMAN! can leave empty directories for uninstalled SDK candidates, so it is important to count the non-empty directories only (i.e., a bit more involved than a simplegetNumElementscall).
Note that this counts every SDK or framework installed as 1 (even if there are multiple versions installed for it), which is, in my opinion, the correct thing to do.
- 主要语言
- C
- 星标
- 24.7k
- 派生
- 895
- 平均合并
- 22 小时 43 分钟
- 30 天内合并 PR
- 20
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
fastfetch-cli/fastfetch 的其他 Issue
-
logo request
难度 1/5 1 小时以内 新手友好度 90/100
fastfetch-cli/fastfetch#2607 ·
维护者通常 1 天内回复
-
logo request
难度 2/5 1-3 小时 新手友好度 72/100
fastfetch-cli/fastfetch#2590 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 74/100
fastfetch-cli/fastfetch#2587 · 1 条评论 ·
维护者通常 1 天内回复
-
logo request
难度 2/5 1-3 小时 新手友好度 68/100
fastfetch-cli/fastfetch#2568 ·
维护者通常 1 天内回复
-
[LOGO] EnderOS未关闭logo request
难度 2/5 1-3 小时 新手友好度 72/100
fastfetch-cli/fastfetch#2556 ·
维护者通常 1 天内回复
查看 fastfetch-cli/fastfetch 的全部 Issue
相似的 Issue
-
bug needs triage
难度 2/5 1-3 小时 新手友好度 78/100
netdata/netdata#24062 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 2/5 1-3 小时 新手友好度 88/100
BasedHardware/omi#19463 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
EchoTools/nevr-runtime#30 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
riscv-software-src/riscv-isa-sim#2448 ·
维护者通常 2 天内回复