-
-
Notifications
You must be signed in to change notification settings - Fork 769
feat: Add --skip-deps flag to run specified tasks, skipping dependencies
#6894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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
--onlyflag torun,tasks run, andwatchcommands with--skip-depsalias - 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.
5e8126f to
fe6ad8c
Compare
f48394a to
e8803f5
Compare
--only flag to run specified tasks, skipping dependencies--skip-deps flag to run specified tasks, skipping dependencies
e8803f5 to
239c1f6
Compare
|
bugbot run |
There was a problem hiding this 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!
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]>
Add --skip-deps flag to run specified tasks, skipping dependencies
Note
Adds
--skip-depstomise runandmise watchplus atask_skip_dependssetting/env to execute only specified tasks, skipping all dependencies.mise run: new--skip-depsflag; respectsMISE_TASK_SKIP_DEPENDSandsettings.task_skip_depends.mise watch: supports--skip-depsand forwards it tomise run.skip_depsthrough CLI -> task list -> executor; when enabled, clearsdepends,depends_post, andwait_forfor target and injected tasks.get_task_listsgainsonlyparam to strip dependencies when requested.settings.task_skip_depends(boolean) andMISE_TASK_SKIP_DEPENDSenv; updatesschema/mise.jsonandsettings.toml.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.test_task_skip_depsandtest_task_watch_skip_depsvalidate run/watch behavior skipping dependencies.Written by Cursor Bugbot for commit 5c8ec61. This will update automatically on new commits. Configure here.