refactor: restructure CLI command hierarchy#10
Merged
Conversation
Convert top-level `log`, `edit`, and `remove` commands into subcommands `log add`, `log edit`, and `log remove` under a new `log` group command. This groups all time entry operations under a single namespace, improving CLI discoverability and consistency with the existing project/defaults group pattern. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The landing page and quick-start guide still used the old `hourgit log` syntax after the command was moved under the `log` group. This aligns them with the refactored CLI structure. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
project scheduleanddefaults schedulegroups (previouslyconfigprefix)log,edit,removeunder aloggroup command (log add,log edit,log remove)resolveProjectFromRepoin favor of sharedResolveProjectContexttimeFieldshelper,entries.goloader,budget.go,deduct.go,placement.go--from/--to/--durationflags in edit when values are consistentTest plan
task lintpassestask testpasses (all tests updated for new command paths)hourgit log add,log edit,log removework as expectedhourgit project schedule get/set/reset/reportworkhourgit defaults schedule get/set/reset/reportwork🤖 Generated with Claude Code