Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持ls-remote子命令按版本范围约束过滤版本号 #120

Closed
voidint opened this issue Nov 21, 2023 · 0 comments
Closed

支持ls-remote子命令按版本范围约束过滤版本号 #120

voidint opened this issue Nov 21, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@voidint
Copy link
Owner

voidint commented Nov 21, 2023

  • g ls-remote: 不进行版本号过滤
  • g ls-remote stable:匹配稳定状态的版本
  • g ls-remote unstable:匹配非稳定状态的版本
  • g ls-remote archived:匹配归档状态的版本
  • g ls-remote 约束条件:匹配满足约束条件的版本。约束条件如下:
    • 具体版本号:如g lsr 1.21.4
    • 最新版本:g lsr latest
    • 通配符:如g lsr 1.21.xg lsr 1.Xg lsr '1.18.*'
    • 匹配最新的次版本号(主版本号兼容):如g lsr '^1'g lsr '^1.18'g lsr '^1.18.10'等,在主版本号保持一致的前提下,次版本号和修订号均保持最新。
    • 匹配某个次版本号的最新修订号:如g lsr '~1.18',在主次版本号保持一致的前提下,修订号保持最新。
    • 匹配大于目标版本的最新版本:如g lsr '>1.18',大于该版本的前提下,匹配最大的版本号。
    • 匹配小于目标版本的最新版本:如g lsr '<1.16',小于该版本的前提下,匹配最大的版本号。
    • 匹配目标版本区间内的最新版本:如g lsr '1.18 - 1.20',匹配该区间范围内的最大版本。
@voidint voidint added the enhancement New feature or request label Nov 21, 2023
@voidint voidint self-assigned this Nov 21, 2023
@voidint voidint closed this as completed Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant