Skip to content

Conversation

@hverlin
Copy link
Contributor

@hverlin hverlin commented Nov 4, 2025

Add --skip-deps flag to run specified tasks, skipping dependencies


Note

Adds --skip-deps to mise run and mise watch plus a task_skip_depends setting/env to execute only specified tasks, skipping all dependencies.

  • CLI:
    • mise run: new --skip-deps flag; respects MISE_TASK_SKIP_DEPENDS and settings.task_skip_depends.
    • mise watch: supports --skip-deps and forwards it to mise run.
  • Task Resolution/Execution:
    • Plumbs skip_deps through CLI -> task list -> executor; when enabled, clears depends, depends_post, and wait_for for target and injected tasks.
    • get_task_lists gains only param to strip dependencies when requested.
  • Config/Schema:
    • Adds settings.task_skip_depends (boolean) and MISE_TASK_SKIP_DEPENDS env; updates schema/mise.json and settings.toml.
  • Docs/UX:
    • Updates help pages (docs/cli/run.md, docs/cli/tasks/run.md, docs/cli/watch.md), manpage, usage spec (mise.usage.kdl), and Fig completion to include --skip-deps.
  • Tests:
    • New e2e tests: test_task_skip_deps and test_task_watch_skip_deps validate run/watch behavior skipping dependencies.

Written by Cursor Bugbot for commit 5c8ec61. This will update automatically on new commits. Configure here.

Copilot AI review requested due to automatic review settings November 4, 2025 21:09
Copy link
Contributor

Copilot AI left a comment

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 a --only flag (with --skip-deps alias) to the run, tasks run, and watch commands to allow running tasks without executing their dependencies. The flag modifies task execution by clearing depends, depends_post, and wait_for fields before execution.

  • Adds --only flag to run, tasks run, and watch commands with --skip-deps alias
  • Implements dependency skipping by clearing task dependency fields in get_task_lists
  • Updates documentation and CLI specifications across multiple files

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/cli/run.rs Adds --only flag field and passes it to get_task_lists
src/cli/watch.rs Adds --only flag field, passes it to watchexec command, but hardcodes false in get_task_lists call
src/cli/mod.rs Sets only: false when constructing default Run command
src/task/task_list.rs Adds only parameter and clears dependency fields when enabled
xtasks/fig/src/mise.ts Updates Fig autocomplete with --only option
mise.usage.kdl Adds --only flag to command specifications
man/man1/mise.1 Updates man page documentation
docs/cli/*.md Updates documentation files
e2e/tasks/test_task_only Adds end-to-end test for --only flag with run command
e2e/tasks/test_task_watch_only Adds end-to-end test for --only flag with watch command

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

@hverlin hverlin force-pushed the hv/run-dependency-only branch 3 times, most recently from 5e8126f to fe6ad8c Compare November 4, 2025 21:48
@hverlin hverlin force-pushed the hv/run-dependency-only branch 2 times, most recently from f48394a to e8803f5 Compare November 10, 2025 09:56
@hverlin hverlin changed the title feat: Add --only flag to run specified tasks, skipping dependencies feat: Add --skip-deps flag to run specified tasks, skipping dependencies Nov 10, 2025
@hverlin hverlin force-pushed the hv/run-dependency-only branch from e8803f5 to 239c1f6 Compare November 11, 2025 18:34
@jdx
Copy link
Owner

jdx commented Nov 12, 2025

bugbot run

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no bugs!


jdx and others added 2 commits November 12, 2025 13:16
The get_task_lists function expects 4 parameters (config, args, prompt, only)
but the call in run.rs was only passing 3. Added the missing 'only' parameter
set to false to include task dependencies when displaying help.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@jdx jdx enabled auto-merge (squash) November 12, 2025 23:33
@jdx jdx merged commit de974c4 into jdx:main Nov 12, 2025
29 checks passed
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.

2 participants