`dsc resource list <INPUT>` should leverage the adapter cache to find resources
还没有人认领这个 Issue。
- 主要语言
- Rust
- 星标
- 523
- 派生
- 75
- 平均合并
- 3 天 16 小时
- 30 天内合并 PR
- 24
描述
Summary of the new feature / enhancement
dsc resource list <INPUT> will not currently find resources behind adapters without specifying the adapter (or *). With the resource cache for adapters, this may be performant enough to allow searching across all adapters even without being requested.
The downside is that on a system without any cached data, the initial search for a resource will need to build out the caches. This could make the first run of dsc resource list <INPUT> extremely expensive.
Note that I am not suggesting that dsc resource list should search adapters. Even if this was fast to do, the result set would be far too large to be of much use. This may eventually be the case for un-adapted resources.
Proposed technical implementation details (optional)
No response
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先跟踪 dsc resource list <INPUT> 命令和 adapter 资源缓存的实现。检查未指定 adapter 时搜索的行为,然后确定如何搜索已缓存 adapter 的资源,而不同时搜索 adapter 本身。完成的标准是:该命令无需显式指定 adapter 即可找到 adapter 后面的资源,同时保持结果集聚焦,并能妥善处理未缓存的系统。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- rust
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100