-
Notifications
You must be signed in to change notification settings - Fork 13
Add project CRUD commands (create, update, delete) #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
memyselfandm
wants to merge
8
commits into
dorkitude:master
Choose a base branch
from
memyselfandm:feat/project-crud-commands
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add project CRUD commands (create, update, delete) #25
memyselfandm
wants to merge
8
commits into
dorkitude:master
from
memyselfandm:feat/project-crud-commands
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enable setting, changing, or removing parent issue relationships via CLI: - linctl issue update ISSUE-1 --parent PARENT-1 (set parent) - linctl issue update ISSUE-1 --parent none (remove parent) Features: - Validates parent issue exists before update - Prevents self-referencing (issue cannot be its own parent) - Displays parent info in update output (styled and plaintext modes) - Supports "none", "null", or empty string to remove parent Files changed: - cmd/issue.go: Flag registration, validation logic, help text, output - pkg/api/queries.go: Added parent field to UpdateIssue mutation - smoke_test.sh: Added tests for --parent flag documentation - project-scratchpad.md: Implementation tracking 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Remove project-scratchpad.md (dev artifact) - Port README documentation from PR dorkitude#7 (adapted for --parent flag) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Implements `linctl project create` with: - Required flags: --name, --team (supports multiple teams) - Optional flags: --description, --state, --lead, --start-date, --target-date, --color - Team key to ID resolution - User lookup for lead assignment (by email, name, or 'me') - State validation (planned, started, paused, completed, canceled) - Three output modes: default (colored), JSON, plaintext Usage examples: linctl project create --name "Q1 Release" --team ENG linctl project create --name "Auth" --team ENG --lead me --state started 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Implements `linctl project update` with: - Required: project ID as positional argument - Optional flags: --name, --description, --state, --lead, --start-date, --target-date, --color - Lead removal support (--lead none/unassigned) - Date clearing support (--start-date "" or --target-date "") - State validation (planned, started, paused, completed, canceled) - Only sends changed fields to API for efficiency Usage examples: linctl project update abc123 --name "New Name" linctl project update abc123 --state completed --lead me linctl project update abc123 --lead none # remove lead 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Implements `linctl project delete` with: - Archive (soft delete) as default behavior - Permanent delete with explicit --permanent flag - Confirmation prompt before deletion (skipped with --force or --json) - Project name displayed in confirmation for verification - Aliases: delete, rm, remove - Visual distinction between archive and permanent delete in output Safety features: - Requires explicit --permanent for irreversible deletion - Confirmation prompt shows project name - Clear messaging distinguishes archive vs PERMANENTLY DELETE Usage examples: linctl project delete abc123 # Archive (soft delete) linctl project delete abc123 --permanent # Permanent delete linctl project delete abc123 --force # Skip confirmation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Documents the implementation process for project CRUD commands including: - Execution status table tracking all parts - Codebase pattern analysis for cmd/project.go and pkg/api/queries.go - Testing structure analysis - Validation checklist 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Standardize indentation to tabs (gofmt compliance). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Remove project-scratchpad.md dev artifact - Run gofmt on project.go, root.go, queries.go
7051743 to
de27c4e
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
linctl project createcommand for creating new projectslinctl project updatecommand for updating existing projectslinctl project deletecommand for archiving or permanently deleting projectsFeatures
project create--name,--team(supports multiple teams)--description,--state,--lead,--start-date,--target-date,--colorproject update--lead none)project delete--permanentflag for hard delete (irreversible)--forceflag to skip confirmation promptdelete,rm,removeTest Plan
go build)go vet ./...,gofmt)🤖 Generated with Claude Code