Skip to content

Conversation

@fuba
Copy link
Owner

@fuba fuba commented Apr 9, 2025

Summary

  • Add new \ action to update directory paths in history entries
  • Implemented both exact path and subdirectory path updates
  • Added automatic path standardization (absolute paths, path cleanup)
  • Added comprehensive tests and documentation

Test plan

  • Run ? github.com/fuba/histree-core/pkg/histree [no test files]
    === RUN TestAddEntry
    --- PASS: TestAddEntry (0.01s)
    === RUN TestGetEntries
    --- PASS: TestGetEntries (0.01s)
    === RUN TestFormatVerboseWithTimezone
    --- PASS: TestFormatVerboseWithTimezone (0.00s)
    === RUN TestFormatVerboseWithSpecificTimezones
    === RUN TestFormatVerboseWithSpecificTimezones/Timezone_UTC
    === RUN TestFormatVerboseWithSpecificTimezones/Timezone_America/New_York
    === RUN TestFormatVerboseWithSpecificTimezones/Timezone_Asia/Tokyo
    --- PASS: TestFormatVerboseWithSpecificTimezones (0.00s)
    --- PASS: TestFormatVerboseWithSpecificTimezones/Timezone_UTC (0.00s)
    --- PASS: TestFormatVerboseWithSpecificTimezones/Timezone_America/New_York (0.00s)
    --- PASS: TestFormatVerboseWithSpecificTimezones/Timezone_Asia/Tokyo (0.00s)
    === RUN TestUpdatePaths
    --- PASS: TestUpdatePaths (0.01s)
    PASS
    ok github.com/fuba/histree-core/cmd/histree-core 0.022s to verify all tests pass
  • Manually test the command with \

v0.3.5-rc.1 has been tagged for testing purposes.

- Add UpdatePaths method to histree DB
- Add update-path subcommand with old-path and new-path parameters
- Handle both exact matches and subdirectory paths
- Standardize paths to absolute paths
- Update documentation and examples
- Add tests for new functionality
@fuba
Copy link
Owner Author

fuba commented Apr 9, 2025

PRの出力がやや壊れていますが、プルリクエスト自体は作成されています。PRのマージ後にプロジェクトオーナーが必要に応じて正式
なタグをプッシュすることになるでしょう。

すごいこといってる

@fuba fuba merged commit f4b282c into main Apr 9, 2025
2 checks passed
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.

2 participants