`Find-PSResource` - Ability to exclude tag(s)

未关闭
#1,767 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
42/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
csharp, powershell
领域
cli, tooling

调研方向

从 Find-PSResource 的实现开始,跟踪标签筛选器如何转换为包搜索 API 查询。将提议的 -ExcludeTag 参数与替代的否定 -Tag 语法进行比较,然后验证包含和排除的标签是否产生预期的搜索结果。

由索引模型根据 Issue 内容生成。

描述

Area-Find feature_request
Summary of the new feature / enhancement

It'd be useful with the ability to exclude one or more tags from the result when using Find-PSResource, instead of having all results returned, then filter locally.

Example scenarios where this would be helpful:

  • All modules made for PSEdition_Desktop but not PSEdition_Core.
  • All Mac OS only packages.

The API supports it, for instance like so:

  • Include "Linux": substringof(%27Linux%27%2c+Tags)+eq+true
  • Exclude "Linux": substringof(%27Linux%27%2c+Tags)+eq+false
Proposed technical implementation details (optional)
  • New parameter -ExcludeTag?
  • ! in front of a tag, like this: -Tag 'MacOS', '!Linux'?
主要语言
C#
星标
576
派生
114
平均合并
23 小时 17 分钟
30 天内合并 PR
8

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

PowerShell/PSResourceGet 的其他 Issue

查看 PowerShell/PSResourceGet 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。