feat(initiative): add initiative CRUD commands#55
Open
t-choudhury wants to merge 1 commit into
Open
Conversation
Add full initiative management to linctl: - list/get/create/update/delete/archive/unarchive subcommands - link/unlink for initiative-to-project associations - Tri-mode output: table, plaintext, JSON - Status filtering (Planned/Active/Completed) - Owner resolution (email, name, "me") - Two-step unlink via initiativeToProject edge lookup - Unit tests for command registration, flags, and status normalization - Documentation in README.md, SKILL.md, and master_api_ref.md
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
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
Adds full initiative management commands to linctl, covering the Linear initiative API surface.
New Commands
linctl initiative listlinctl initiative getlinctl initiative createlinctl initiative updatelinctl initiative deletelinctl initiative archivelinctl initiative unarchivelinctl initiative linklinctl initiative unlinkArchitecture
Follows the same patterns as
cmd/project.go:viperfor global flag bindingapi.Clientmethods inpkg/api/queries.goInitiativeStatusenum (Planned,Active,Completed)meChanges
pkg/api/queries.go: ExpandedInitiativestruct (3 → 20+ fields), addedInitiatives,InitiativeToProject,InitiativeUpdatestypes, and 10 API client methodscmd/initiative.go(new): All 9 subcommands with Cobra command definitionscmd/initiative_cmd_test.go(new): Unit tests for registration, flags, aliases, status normalizationREADME.md: Features list, Quick Start examples, Command ReferenceSKILL.md: Command map, read/write patterns, discovery commandsmaster_api_ref.md: API mapping tableTesting
go build ./...✅go test ./...✅go vet ./...✅