[Phase 1] Task 6: Create CLI (jigaido-cli) #10

Closed
opened 2026-04-02 18:30:59 +02:00 by shoko · 0 comments
Owner

Task 6: Create CLI (jigaido-cli)

Labels: phase-1, cli
Dependency: Task 3 (#7), Task 4 (#8), Task 5 (#9)

Goal

Create a functional CLI that uses the core services.

Files to create

CLI Commands

# Group bounties
jigaido-cli --group-id 123 add "Fix the login bug" --link https://github.com/... --due "tomorrow"
jigaido-cli --group-id 123 list
jigaido-cli --group-id 123 my
jigaido-cli --group-id 123 update 1 "New text" --clear-link
jigaido-cli --group-id 123 delete 1

# Personal bounties (DM mode)
jigaido-cli --user-id 456 add "Personal task" --due "next week"
jigaido-cli --user-id 456 list
jigaido-cli --user-id 456 update 1 --clear-due
jigaido-cli --user-id 456 delete 1

# Tracking (in group context)
jigaido-cli --group-id 123 --user-id 456 track 1
jigaido-cli --group-id 123 --user-id 456 untrack 1
jigaido-cli --group-id 123 --user-id 456 my

# Help
jigaido-cli --help

Flags

  • — Group context (required for group commands)
  • — User context
  • — Clear the link field
  • — Clear the due date field

Implementation Notes

  • Use or for CLI parsing
  • Initialize adapters with config.DATA_DIR
  • Wire up services with storage adapters
  • Format output nicely for humans

Acceptance Criteria

  • All commands functional via CLI
  • Tests in tests/test_cli.py pass
## Task 6: Create CLI (jigaido-cli) **Labels:** phase-1, cli **Dependency:** Task 3 (#7), Task 4 (#8), Task 5 (#9) ### Goal Create a functional CLI that uses the core services. ### Files to create - - ### CLI Commands ```bash # Group bounties jigaido-cli --group-id 123 add "Fix the login bug" --link https://github.com/... --due "tomorrow" jigaido-cli --group-id 123 list jigaido-cli --group-id 123 my jigaido-cli --group-id 123 update 1 "New text" --clear-link jigaido-cli --group-id 123 delete 1 # Personal bounties (DM mode) jigaido-cli --user-id 456 add "Personal task" --due "next week" jigaido-cli --user-id 456 list jigaido-cli --user-id 456 update 1 --clear-due jigaido-cli --user-id 456 delete 1 # Tracking (in group context) jigaido-cli --group-id 123 --user-id 456 track 1 jigaido-cli --group-id 123 --user-id 456 untrack 1 jigaido-cli --group-id 123 --user-id 456 my # Help jigaido-cli --help ``` ### Flags - — Group context (required for group commands) - — User context - — Clear the link field - — Clear the due date field ### Implementation Notes - Use or for CLI parsing - Initialize adapters with config.DATA_DIR - Wire up services with storage adapters - Format output nicely for humans ### Acceptance Criteria - [ ] All commands functional via CLI - [ ] Tests in tests/test_cli.py pass
shoko closed this issue 2026-04-02 18:33:17 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shoko/jigaido#10