PowerShell / PowerShell/PSResourceGet

Cleanup functionality, where only the latest version of a module is kept

オープン
#581 コメント 10 件 リアクション 7 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Area-Uninstall Area-Update feature_request
主要言語
C#
スター
576
フォーク
114
平均マージ
1日 2時間
マージ済み PR(30日)
7

説明

Summary of the new feature / enhancement

As a user/administrator I want to only keep the latest version of any module, so I don't accumulate many outdated versions on the systems that I manage.

Proposed technical implementation details (optional)

Functional implementation ideas

  1. Update-PsResource -KeepLatestOnly
  2. Uninstall-PsResource -KeepLatest

Technical idea
The GetHelper class could be used and expanded to implement a filter returning all modules except the latest version. With that, the proper uninstalls could be performed (option 2) after installing the newest version (option 1).

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず GetHelper クラスと、Update-PsResource および Uninstall-PsResource のエントリポイントを確認します。最新以外のインストール済みモジュールバージョンをすべて識別できるフィルターの方法を特定し、選択したクリーンアップ動作が提案されている両方のコマンドオプションで機能することを検証します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp, powershell
領域
cli, tooling
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。