feat: tmpo manual for manual time entry creation#7
Merged
Conversation
Introduces a new 'manual' command to create completed time entries by specifying start and end times via an interactive CLI menu. Adds dependency on promptui for user prompts. Implements CreateManualEntry in the database layer to support inserting historical entries with explicit start and end times.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request introduces a new interactive command for creating manual time entries, enhances the storage layer to support these entries, and adds a new dependency for interactive prompts. The main focus is on enabling users to specify both start and end times for time entries via a guided command-line interface.
New Manual Time Entry Command:
manualsubcommand incmd/manual.gothat interactively prompts the user for project name, start/end dates and times, and an optional description. The command validates inputs, parses times, and creates a completed entry in the database.Database Enhancements:
CreateManualEntrymethod to theDatabasestruct ininternal/storage/db.goto insert a fully specified time entry with explicit start and end times, supporting the new manual entry workflow.Dependency Updates:
github.com/manifoldco/promptuidependency ingo.modto provide interactive CLI prompts for the new command.These changes collectively allow users to create historical or completed time entries with precise timing information through an interactive experience.