Skip to content

V0.5.0#70

Merged
umpire274 merged 4 commits intomainfrom
v0.5.0
Oct 3, 2025
Merged

V0.5.0#70
umpire274 merged 4 commits intomainfrom
v0.5.0

Conversation

@umpire274
Copy link
Owner

[v0.5.0] - 2025-10-04

🔧 Refactoring

  • Split CLI definition into a dedicated cli.rs module
  • Added a new commands.rs module to handle subcommand actions (config init, file init, cache clear)
  • Extracted configuration logic from utils.rs into a new config.rs module
  • Simplified main.rs to only parse CLI input and dispatch commands

✨ CLI Improvements

  • Introduced subcommands:
    • config init → initialize the configuration file
    • file init → create a sample default fortune file (rfortune.dat)
    • cache clear → clear the cache directory
  • Enhanced --help output with a detailed long_about description and usage examples

✅ Misc

  • Clearer module boundaries (cli, commands, config, utils, loader)
  • Improved maintainability and readability of the codebase

@umpire274 umpire274 merged commit d69d750 into main Oct 3, 2025
1 check 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.

1 participant