Skip to content

Complete an Activity#48

Merged
mfcollins3 merged 1 commit intomainfrom
11-complete-an-activity
Oct 4, 2025
Merged

Complete an Activity#48
mfcollins3 merged 1 commit intomainfrom
11-complete-an-activity

Conversation

@mfcollins3
Copy link
Member

I implemented the activity complete command that allows the user to mark and activity as completed.

Closes #11

I implemented the activity complete command that allows the user to mark
and activity as completed.
@mfcollins3 mfcollins3 self-assigned this Oct 4, 2025
@mfcollins3 mfcollins3 added the enhancement New feature or request label Oct 4, 2025
@mfcollins3 mfcollins3 linked an issue Oct 4, 2025 that may be closed by this pull request
@mfcollins3 mfcollins3 requested a review from Copilot October 4, 2025 00:46
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 "Complete an Activity" command that allows users to mark activities as completed via the CLI. The implementation adds a new complete subcommand under the activity command group, providing functionality to mark activities as completed by their ID.

  • Added a new complete command to the activity CLI subcommands
  • Implemented activity completion functionality with ID validation and database updates
  • Added support for reading activity ID from both command arguments and stdin with timeout handling

Reviewed Changes

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

File Description
internal/cli/execute.go Registers the new CompleteCommand with the activity command group
internal/cli/activity/complete_command.go Implements the complete command with ID parsing, database updates, and stdin input handling

@github-actions
Copy link

github-actions bot commented Oct 4, 2025

🐳 Container Image Built

Your PR container image has been built and published:

ghcr.io/nakedsoftware/time:pr-48

Supported architectures: linux/amd64, linux/arm64

Usage:

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

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

@mfcollins3 mfcollins3 merged commit b9f94cf into main Oct 4, 2025
3 checks passed
@mfcollins3 mfcollins3 deleted the 11-complete-an-activity branch October 4, 2025 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Complete an Activity

1 participant