Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 17, 2025

Adds a new buzz create command that interactively prompts users for goal parameters. Previously, users could only create goals through the TUI modal (press 'n') or manually via the API.

Changes

  • Command handler: handleCreateCommand() prompts for slug, title, type, units, and 2 of 3 parameters (goaldate/goalval/rate)
  • Input helper: promptUser() reads stdin with scanner error handling
  • Validation: Reuses existing validateCreateGoalInput() from TUI modal
  • Integration: Updated help text and error messages

Example

$ buzz create
Create a new Beeminder goal
===========================

Goal slug: reading
Goal title: Daily Reading
Goal type (default: hustler): 
Goal units: pages
Goal date: null
Goal value: 365
Rate: 1

Creating goal...
Successfully created goal: reading

The command follows the same patterns as buzz add and buzz charge - checks authentication, validates inputs, calls existing API functions, and displays results.

Original prompt

Let's create a new command for creating new Beeminder goals. It should ask the user for details interactively (slug, rate, etc)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 17, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI changed the title [WIP] Add new command for creating Beeminder goals feat: add buzz create command for interactive goal creation Dec 17, 2025
Copilot AI requested a review from narthur December 17, 2025 21:05
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.

2 participants