Conversation
正方形のマス目で設計したうさぎのロゴマークを、ブロック文字で標準出力に 印字する `usagi icon [view]` を追加する。`usagi run` の顔文字アニメとは別の、 四角の塊と反転だけで組む静的なマーク。 - `flip`: 横向きの原型(右向き)とその水平反転を四分割ブロック(▘▝▖▗)で 左右に並べる。後ろ足は丸いお尻の下に隠し、前足だけを底ラインに覗かせる。 - `half`: 正面向きの頭部を半マス(▀▄)で描き、縦を半分に圧縮する。 - feature.rs と同じ「純粋な render() + 薄い run()」構成。icon.rs は lines/functions/regions 100% カバレッジ。 - document/03-commands/01-cli.md にコマンドの一覧と詳細を追記。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
main の trace log 機能(#339)が追加した command_name() の網羅 match に Icon の腕が無く、マージ後に E0004(non-exhaustive patterns)で CI が落ちて いた。Icon を "icon" として trace するよう分岐を追加し、変種一覧に合わせて doc コメントも flip / half に更新する。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
📊 Test Coverage
🎉✨ パーフェクト!全ファイル Lines カバレッジ 100% を達成しました 🏆🐰 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目的
正方形のマス目(Claude Code ロゴの手法)で設計したうさぎのロゴマークを、ブロック文字で標準出力に印字する CLI コマンド
usagi iconを追加する。usagi runの顔文字アニメとは別の、四角の塊と反転だけで組む静的なマーク。変更内容
usagi icon [view](view=all(既定) /flip/half)flip: 横向きの原型(右向き)とその水平反転を四分割ブロック(▘▝▖▗)で左右に並べる。2×2 マスを 1 文字に畳んで小型化。後ろ足は丸いお尻の下に隠し、前足だけを底ラインにちょこんと覗かせる。half: 正面向きの頭部を**半マス(▀▄)**で描き、縦を半分に圧縮する。feature.rsと同じ「純粋なrender()→Vec<String>+ 薄いrun()で印字」構成。src/main.rs/src/presentation/cli/mod.rsにIcon { view }サブコマンドを登録・ディスパッチ。document/03-commands/01-cli.mdにコマンド一覧と詳細節を追記。出力例(
usagi icon):```
② 水平フリップ · 横向き — 原型を左右反転(▘▝ で小型化)
▄▄▄██▛█ █▜██▄▄▄
▟██████▛ ▜██████▙
██████▛ ▜██████
▝███ █ █ ███▘
→ 右向き(原型) ← 左向き(反転)
中(半マス ▀▄・縦を半分に)
██ ██
▄██▄▄██▄
██▀████▀██
▀████████▀
▀▀▀▀▀▀
```
テスト・確認方法
cargo fmt --check/cargo clippy --all-targets -- -D warnings通過。cargo test全 1725 件パス(iconは単体 13 テスト)。src/presentation/cli/icon.rsは lines / functions / regions すべて 100%(強制ゲート通過)。usagi icon/usagi icon flip/usagi icon halfで表示を確認。不正値は[possible values: all, flip, half]で拒否。🤖 Generated with Claude Code