feat: add project creation and archival commands #16
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.
Dependencies
Depends on #15 – builds on the issue‑project assignment feature.
Summary
Adds
project createandproject archivecommands, enabling complete project lifecycle management from the CLI.Builds on PR #15 (issue‑project assignment) to provide a comprehensive project management workflow.
Motivation
Users need to create and archive projects as part of their terminal workflow. Currently, project creation requires using the Linear web interface, which interrupts CLI‑based productivity.
Changes
New Features
linctl project createcommand--name,--team--description,--state,--priority,--target-datelinctl project archivecommandImplementation Details
pkg/api/queries.go:CreateProject()method with GraphQL mutationArchiveProject()methodGetTeam()to support lookup by key (with ID fallback)cmd/project.go:projectCreateCmdwith comprehensive validationprojectArchiveCmdwith name displaycmd/project_cmd_test.go,cmd/project_test.go: Full test coverageUsage Examples
Validation
planned|started|paused|completed|canceledYYYY‑MM‑DDTesting
Unit Tests
Smoke/Build
make test(smoke tests) passingmake fmtappliedBreaking Changes
None – new commands only.
Architecture Notes
Checklist
Contributor Checklist (Contributing.md)
make depsas neededmake fmtappliedmake testpasses (read‑only smoke tests)