Skip to content

feat(cli): update quickstarts with package manager support, e2e tests for quickstarts#2801

Merged
abelanger5 merged 18 commits into
mainfrom
belanger/docs-cli-changes
Jan 16, 2026
Merged

feat(cli): update quickstarts with package manager support, e2e tests for quickstarts#2801
abelanger5 merged 18 commits into
mainfrom
belanger/docs-cli-changes

Conversation

@abelanger5

@abelanger5 abelanger5 commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

Description

  • Adds options for Python and Typescript package manager support - uv, pip, poetry, npm, pnpm, yarn, and bun. Also adds e2e tests to ensure that all of these quickstarts successfully can start a worker.
  • Replaces the scripts with triggers in the CLI
  • Adds the hatchet trigger command

Type of change

  • New feature (non-breaking change which adds functionality)

@vercel

vercel Bot commented Jan 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
hatchet-docs Ready Ready Preview, Comment Jan 15, 2026 10:15pm

Review with Vercel Agent

Comment thread .github/workflows/cli-e2e-tests.yml
Comment thread cmd/hatchet-cli/cli/templates/typescript/shared/Dockerfile
Comment thread .pre-commit-config.yaml
Comment thread cmd/hatchet-cli/cli/profile.go

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive package manager support to Hatchet quickstarts and refactors the CLI trigger system. It enables Python projects to use Poetry, uv, or pip, and TypeScript projects to use npm, pnpm, Yarn, or Bun. The PR also renames "scripts" to "triggers" and moves hatchet worker run --script functionality to hatchet trigger.

Changes:

  • Adds package manager selection for Python (poetry, uv, pip) and TypeScript (npm, pnpm, yarn, bun)
  • Refactors quickstart generation to support shared and package-manager-specific templates
  • Renames "scripts" to "triggers" with new hatchet trigger command
  • Extracts worker dev logic into reusable RunWorkerDev function for testing
  • Adds TUI navigation to workflow runs via --run flag

Reviewed changes

Copilot reviewed 36 out of 51 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
cmd/hatchet-cli/cli/worker.go Removed run command, extracted dev logic into RunWorkerDev for testability
cmd/hatchet-cli/cli/trigger.go New trigger command supporting config triggers and manual workflow triggering
cmd/hatchet-cli/cli/quickstart.go Added package manager selection and multi-source template processing
cmd/hatchet-cli/cli/tui.go Added --run flag for navigating to specific workflow runs
cmd/hatchet-cli/cli/internal/config/worker/config.go Renamed Scripts to Triggers
cmd/hatchet-cli/cli/templates/... Added package manager-specific templates for Python and TypeScript
frontend/docs/pages/cli/triggering-workflows.mdx Updated documentation for new trigger command

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


if selectedWorkflow == nil {
cli.Logger.Fatalf("workflow '%s' not found", workflowName)
return // Make linter happy

Copilot AI Jan 15, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment and return statement are unnecessary. The cli.Logger.Fatalf call on line 428 never returns, so the linter should not complain about missing return. Remove line 429.

Copilot uses AI. Check for mistakes.
@abelanger5 abelanger5 merged commit 5dd5430 into main Jan 16, 2026
44 of 46 checks passed
@abelanger5 abelanger5 deleted the belanger/docs-cli-changes branch January 16, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants