worktrunk icon indicating copy to clipboard operation
worktrunk copied to clipboard

Rename get_* functions to bare nouns per CLAUDE.md naming conventions

Open worktrunk-bot opened this issue 8 months ago • 2 comments

Summary

Several public functions use the get_* prefix, which CLAUDE.md explicitly discourages in favor of bare nouns (Rust convention).

Locations

  • src/config/user/path.rs:34 — get_config_path() → should be config_path()
  • src/config/user/path.rs:76 — get_system_config_path() → should be system_config_path()
  • src/git/repository/config.rs:12 — get_config() → should be config_value() or similar
  • src/utils.rs — get_now() → should be now() or epoch_now()

Context

These are public APIs used throughout the codebase, so renaming is a larger refactor. The CLAUDE.md accessor naming conventions state: "Don't use get_* prefix — use bare nouns instead (Rust convention)."

Since this is a CLI tool with no library consumers, a rename is safe (no external compatibility concern).

worktrunk-bot avatar Mar 17 '26 06:03 worktrunk-bot

rename all please

max-sixty avatar Mar 17 '26 07:03 max-sixty

Done — #1586 renames all get_* functions to bare nouns across the codebase (25+ functions, 58 files). All tests pass.

worktrunk-bot avatar Mar 17 '26 08:03 worktrunk-bot