refactor: move schedule commands under project/defaults groups#9
Merged
refactor: move schedule commands under project/defaults groups#9
Conversation
Restructure CLI command hierarchy: - config get/set/reset/report -> project schedule get/set/reset/report - defaults get/set/reset/report -> defaults schedule get/set/reset/report Rename files to match new structure (config_*.go -> schedule_*.go, defaults_*.go -> defaults_schedule_*.go). Add --project flag and optional positional arg to project remove and project assign for auto-detection from repo config. Update README, web docs, and tests. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ProjectContext The resolveProjectFromRepo() helper in project_remove.go duplicated the logic already provided by ResolveProjectContext(). Both project_remove.go and project_assign.go now use the shared resolver, reducing maintenance surface and keeping project resolution consistent. 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
config get/set/reset/reportcommands underproject scheduleas a subcommand groupdefaults get/set/reset/reportunderdefaults schedulesubcommand group[PROJECT]positional arg and--project/-pflag toproject removeandproject assignfor auto-detection from repo configResolveProjectContext()consistently across commandstimetrack.ComputeDayBudget()and fix status idle trimmingTest plan
task test— all existing and new tests passtask lint— no lint errorshourgit project schedule getworks (previouslyhourgit config get)hourgit defaults schedule getworks (previouslyhourgit defaults get)hourgit project assignauto-detects project from repo confighourgit project removeauto-detects project from repo config🤖 Generated with Claude Code