feat: Global Configuration File #43
Merged
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.
Pull Request Checklist
mainbranch of tmpo.Closes #42
Description
This pull request introduces a new global configuration system for the application, allowing users to set preferences such as currency, date/time formats, and timezone. It adds a new interactive CLI command (
tmpo config) for managing these settings, and updates the codebase to use these global and per-project settings for formatting and display. The changes also refactor configuration-related code frominternal/configtointernal/settings, and update all relevant commands to use the new formatting and configuration utilities.The most important changes are:
Global Configuration System:
cmd/config/config.gocommand that provides an interactive wizard (tmpo config) for setting global preferences (currency, date format, time format, timezone), with validation and persistent storage at~/.tmpo/config.yaml.README.mdandCLAUDE.mdto describe the new global and per-project configuration, including supported settings and usage instructions. [1] [2] [3]Refactoring and Codebase Consistency:
internal/configtointernal/settings, and updated all imports and usages accordingly across commands (manual entry, editing, deletion, etc.). [1] [2] [3] [4]Date/Time Formatting Improvements:
edit,delete,manual,log) with new formatting helpers ininternal/settings, ensuring consistent display that respects user preferences. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]Currency Handling:
These changes collectively improve user experience by enabling global customization, ensuring consistency in display, and simplifying configuration management.
Screenshots