PowerShell / PowerShell/PSResourceGet

Add a Rename-PSResourceRepository cmdlet

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

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

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

説明

Summary of the new feature / enhancement

Currently the only way to rename a resource repository is to first unregister and then register it again. To make this easier for the user please introduce a Rename-PSResourceRepository.

Proposed technical implementation details (optional)
SYNTAX
    Rename-PSResourceRepository [-Name] <string> [-NewName] <string> [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]
function Rename-PSResourceRepository {
    [CmdletBinding(SupportsShouldProcess)]
    param (
        [Parameter(Mandatory, Position = 0, ValueFromPipeline, ValueFromPipelineByPropertyName)]
        [string]
        $Name,

        [Parameter(Mandatory, Position = 1, ValueFromPipelineByPropertyName)]
        [string]
        $NewName,

        [Parameter()]
        [switch]
        $PassThru
    )
    
    process {
        if ($PSCmdlet.ShouldProcess($Name)) {
            # Rename repository
        }
    }
}

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

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

はじめの一歩

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

調査の方向性

まず、既存のリソースリポジトリの登録解除および登録用 cmdlet を読みます。issue では、これらが現在の名前変更ワークフローとして示されています。提案されている Rename-PSResourceRepository 構文を追加し、Name、NewName、PassThru、WhatIf、Confirm、およびパイプラインの動作を確認します。ユーザーがリポジトリの登録を手動で解除して再登録することなく名前を変更できれば完了です。

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

評価

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

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

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