Add a new commitment to track.
Aliases
- •
/ft promise "title"- Add a promise - •
/ft product "title"or/ft broken-product "title"- Add a product to fix - •
/ft regulation "title"- Add a regulation/form
Arguments
- •
TYPE- Required: promise, product, regulation, or custom type name - •
"TITLE"- Required: Description of the commitment - •
--to NAME- For promises: who you made the promise to - •
--due DATE- Due date in YYYY-MM-DD format - •
--priority LEVEL- low, medium (default), high, or urgent - •
--desc "TEXT"- Longer description - •
--notes "TEXT"- Additional notes
Instructions
- •
Parse Arguments: Extract type, title, and optional flags
- •
Validate Type: Check type exists in commitment_types table. If not, show available types.
- •
Insert Commitment:
- •Generate 8-character ID
- •Set created_at to now
- •Set status to 'pending'
- •Default priority to 2 (medium) if not specified
- •
Confirm: Display:
codeAdded: {title} ID: {id} Type: {type} Priority: {priority_name} Due: {due_date or "No due date"} - •
Show Updated Dashboard (abbreviated)
Examples
code
/ft promise "Send birthday card" --to "Mom" --due "2025-01-15" --priority high /ft product "Fix leaky faucet" /ft regulation "Renew passport" --deadline "2025-06-01"