Skip to content

Conversation

@mfcollins3
Copy link
Member

I implemented the activity list command to display all active activities in the Activity Inventory. Activities are sorted by their priority and creation date.

I refactored the source code to put the subcommands into their own subdirectories. I moved the context code to its own package to resolve a circular dependency error.

Closes #40

I implemented the `activity list` command to display all active
activities in the Activity Inventory. Activities are sorted by their
priority and creation date.

I refactored the source code to put the subcommands into their own
subdirectories. I moved the context code to its own package to resolve
a circular dependency error.
@mfcollins3 mfcollins3 linked an issue Sep 30, 2025 that may be closed by this pull request
@mfcollins3 mfcollins3 self-assigned this Sep 30, 2025
@github-actions
Copy link

🐳 Container Image Built

Your PR container image has been built and published:

ghcr.io/nakedsoftware/time:pr-45

Supported architectures: linux/amd64, linux/arm64

Usage:

docker run --rm ghcr.io/nakedsoftware/time:pr-45 --help

🗑️ This image will be automatically deleted when the PR is closed.

I renamed start_pomodoro_command.go to start_command.go to match the
naming convention that I am using for other commands.
@mfcollins3 mfcollins3 requested a review from Copilot September 30, 2025 23:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements the activity list command to display all active activities from the Activity Inventory, with activities sorted by priority and creation date. The code has been refactored to organize subcommands into their own subdirectories and resolve circular dependency issues.

  • Moved context management code to a separate package to resolve circular dependencies
  • Reorganized CLI subcommands into dedicated subdirectories (activity, pomodoro)
  • Added new activity list command with database querying and output formatting

Reviewed Changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
internal/context/context.go Extracted context utilities to separate package, added database context functions
internal/cli/root_command.go Updated to use new context package
internal/cli/pomodoro/start_command.go Moved to pomodoro subdirectory, updated imports and variable names
internal/cli/execute.go Updated command registration to use reorganized subcommand structure
internal/cli/activity/list_command.go New command implementation for listing activities with database queries
internal/cli/activity/add_command.go Moved to activity subdirectory, updated imports and variable names
Files not reviewed (2)
  • .idea/fileTemplates/internal/Go Application.go: Language not supported
  • .idea/fileTemplates/internal/Go File.go: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@github-actions
Copy link

🐳 Container Image Built

Your PR container image has been built and published:

ghcr.io/nakedsoftware/time:pr-45

Supported architectures: linux/amd64, linux/arm64

Usage:

docker run --rm ghcr.io/nakedsoftware/time:pr-45 --help

🗑️ This image will be automatically deleted when the PR is closed.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link

🐳 Container Image Built

Your PR container image has been built and published:

ghcr.io/nakedsoftware/time:pr-45

Supported architectures: linux/amd64, linux/arm64

Usage:

docker run --rm ghcr.io/nakedsoftware/time:pr-45 --help

🗑️ This image will be automatically deleted when the PR is closed.

@mfcollins3 mfcollins3 merged commit f47b9f0 into main Sep 30, 2025
3 checks passed
@mfcollins3 mfcollins3 deleted the 40-list-activities-in-activity-inventory branch September 30, 2025 23:49
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.

List Activities in Activity Inventory

2 participants