feature 実装計画書(doc/impl/<lane>/PLAN-*.md)の読み書きを行う
リポジトリのインターフェース。frontmatter のみ機械管理する(仕様書 §8)。
v1.7.0 からファイルは状態に応じたレーン(サブディレクトリ)に置かれる。
正は frontmatter であり、配置はそこから導出される(ImplLane)。
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
create(
String projectDir, ImplPlanMeta meta, String body) → Future< void> -
bodyは §1〜§8 のテンプレート本文(Markdown)。 -
detectMisplaced(
String projectDir) → Future< Map< String, ({String actual, String expected})> > - frontmatter とファイル配置の乖離を検出する。 返り値は「ID → (現在の相対パス, あるべき相対パス)」。
-
findById(
String projectDir, String id) → Future< ImplPlanMeta?> -
listAll(
String projectDir) → Future< List< ImplPlanMeta> > - 全レーンの計画を返す(archive を含む)。
-
nextId(
String projectDir) → Future< String> -
次の
PLAN-NNNN。archive も含む全レーンの最大連番 + 1 (archive を無視すると、アーカイブ後に ID を再利用してしまう)。 -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scanAll(
String projectDir) → Future< ImplScanResult> - 走査の生結果(読めなかったファイル・重複 ID を含む)。
-
sync(
String projectDir, {bool dryRun = false}) → Future< ImplSyncResult> - detectMisplaced の結果に従ってファイルを移動する。
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
String projectDir, ImplPlanMeta meta) → Future< String?> - frontmatter を更新し、続けて正しいレーンへ移動する。 移動が起きた場合は移動先の相対パスを返す(起きなければ null)。
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited