Skip to content

TypeScript Rewrite: Workflow command#37

Open
d4mation wants to merge 15 commits intoENG-219/app-bootstrapfrom
ENG-219/command-workflow
Open

TypeScript Rewrite: Workflow command#37
d4mation wants to merge 15 commits intoENG-219/app-bootstrapfrom
ENG-219/command-workflow

Conversation

@d4mation
Copy link
Contributor

@d4mation d4mation commented Feb 11, 2026

🎫 ENG-219

Reference

Summary

  • Adds the workflow command (aliased as do) that runs named workflow sequences defined in .puprc
  • Supports passing additional arguments to workflow scripts via -- separator
  • Supports environment variable injection via env configuration
  • Includes test coverage for workflow command

Dependencies

This PR depends on #30 (app-bootstrap) being merged first.

Test plan

  • Verify npx pup workflow <name> runs the configured workflow
  • Verify npx pup do <name> alias works
  • Verify argument passthrough with -- separator
  • Verify error handling for non-existent workflows

@d4mation d4mation mentioned this pull request Feb 11, 2026
3 tasks
@d4mation d4mation added the On Hold We're waiting for something. The Pull Request should not be merged. label Feb 11, 2026
d4mation and others added 2 commits February 11, 2026 16:24
Add tests verifying --root changes the working directory for workflow
command execution. Update the option description to make it clear that
--root controls where commands run, not where config is loaded from.
.command('workflow <workflow>')
.alias('do')
.description('Run a command workflow.')
.option('--root <dir>', 'Run workflow commands in the given directory instead of the current working directory.')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is how this flag worked in the PHP version as well. The description for it just wasn't clear.

@d4mation d4mation marked this pull request as ready for review February 12, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

On Hold We're waiting for something. The Pull Request should not be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant