Add laby --show ID to list what a run changed

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

メンテナーはふだん 1 日以内に返信

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

評価

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

調査の方向性

Start by reading Conventions 3.3 and 3.2 in the docs to find the actions table and run log format. Implement --show ID in both runner scripts (PowerShell and bash), adding to the actions table, then write bats and Pester tests for runs with changes, undone, and failed modules. Done means laby --show ID outputs header and per-module changes within 78 columns, secrets absent, and tests pass.

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

説明

area: command-line area: core platform: linux platform: windows type: feature

Location & Context

New action --show ID in both runners, reading a run's manifest (Conventions 7) and run log (Conventions 3.2, "The run log"). Spec: add it to the actions table in Conventions 3.3 first.

Current Behavior

--history lists runs and their states, but there is no command to see what one run actually changed. To undo something by hand, explain a change to a reviewer, or answer "did this run touch SSH?", an operator has to read the manifest and log files directly.

Remediation Plan

  1. Add laby --show ID (ID as for -k/-u): read-only. Prints the run's header (phase, profile, host, group, start and end, state), then each module in run order with its status and every change it made, before and after where the manifest has both, and where the backup is. Secrets never appear.
  2. -v adds the run log's lines for each module.
  3. Without an ID it is a usage error that lists the runs, as -k does.
  4. Help topic, manual section, both runners in one branch.
  5. Tests first (bats and Pester): a run with changes, one undone, one with a failed module; a secret written by a module never appears; output within 78 columns.
主要言語
PowerShell
スター
0
フォーク
0
平均マージ
54分
マージ済み PR(30日)
43

環境構築

はじめの一歩

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

dotnetdork/Labyrinth のほかの issue

dotnetdork/Labyrinth の issue をすべて見る

似ている issue

CLI の issue をもっと見る

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

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