Skip to content

refactor(utils): consolidate helpers.rs and input.rs modules#57

Merged
daisuke8000 merged 1 commit intomainfrom
refactor/pr1-utils-consolidation
Dec 20, 2025
Merged

refactor(utils): consolidate helpers.rs and input.rs modules#57
daisuke8000 merged 1 commit intomainfrom
refactor/pr1-utils-consolidation

Conversation

@daisuke8000
Copy link
Owner

Summary

Utils統合リファクタリング(PR 1/7)

Changes

  • helpers.rsdata.rsformat_bytes() を移動
  • input.rsvalidation.rsEnvConfigReader を移動
  • 2つの小さなモジュールを削除(10ファイル → 8ファイル)
  • 後方互換性のためdeprecated re-exportsを追加

Before/After

指標 Before After
utils/ ファイル数 10 8
helpers.rs 32行 削除
input.rs 86行 削除

Test plan

  • 全116テストパス(91 core + 25 TUI)
  • clippy警告なし
  • cargo fmt適用済み

Part of refactoring plan (1/7).

Merge small utility modules to reduce fragmentation:
- Move format_bytes() from helpers.rs → data.rs
- Move EnvConfigReader from input.rs → validation.rs
- Delete helpers.rs (32 lines) and input.rs (86 lines)
- Update display_options.rs import paths
- Add deprecated re-exports for backward compatibility

Reduces utils/ from 10 files to 8 files.

Part of refactoring plan PR 1/7.
@daisuke8000 daisuke8000 merged commit 011e22a into main Dec 20, 2025
1 check passed
@daisuke8000 daisuke8000 deleted the refactor/pr1-utils-consolidation branch December 20, 2025 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant