-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
TL;DR
Create the CLI entrypoint script and package.json command for running the Linear sync, with options for project filtering, dry-run mode, and verbose output.
Deliverables
-
scripts/linear-sync/cli.tsmain entrypoint -
package.jsonscript:"linear:sync": "bun run scripts/linear-sync/cli.ts" -
--project <slug>flag to filter by project -
--dry-runflag to preview without syncing -
--verboseflag for detailed logging -
--helpflag with usage documentation - Config file support (
linear-sync.config.tsor similar)
Acceptance Criteria
-
bun run linear:syncsyncs all projects -
bun run linear:sync --project engine-refactor-v1syncs single project -
bun run linear:sync --dry-runshows what would change without API calls - Exit code 0 on success, non-zero on errors
- Summary output: X created, Y updated, Z skipped, N errors
- Environment variable
LINEAR_API_KEYrequired (error if missing)
Testing / Verification
# Show help
bun run linear:sync --help
# Dry run all projects
bun run linear:sync --dry-run
# Sync specific project
bun run linear:sync --project engine-refactor-v1
# Verbose output
bun run linear:sync --project engine-refactor-v1 --verboseDependencies / Notes
- Depends on: Parser, Lookup, Sync modules
- Blocks: Post-tool hook (needs working CLI to trigger)
- Pattern: Use
process.argvor lightweight arg parser (avoid heavy CLI frameworks) - Config: Team ID, default workspace, glob patterns
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels