Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/cli/watch.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ Run task(s) and watch for changes to rerun it
This command uses the `watchexec` tool to watch for changes to files and rerun the specified task(s).
It must be installed for this command to work, but you can install it with `mise use -g watchexec@latest`.

For more advanced process management (daemon management, auto-restart, readiness checks,
cron scheduling), see mise's sister project: https://pitchfork.jdx.dev

## Arguments

### `[TASK]`
Expand Down
1 change: 1 addition & 0 deletions docs/external-resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Links to articles, videos, and other resources that are relevant to mise.

- 2025-04-09 - Keeping your Swift apps' sensitive data secret - <https://tuist.dev/blog/2025/04/09/secrets>
- 2025-02-17 - hk: git hook manager that pairs well with mise - <https://hk.jdx.dev>
- 2025-02-17 - pitchfork: process manager for developers that pairs well with mise - <https://pitchfork.jdx.dev>
- 2025-02-04 - A Mise guide for Swift developers - <https://tuist.dev/blog/2025/02/04/mise>
- 2025-01-26 - devtools.fm: Jeff Dickey - Mise, Usage, and Pitchfork and the Future of Polyglot Tools - <https://www.devtools.fm/episode/129>
- 2025-01-12 - [fr] Mise-En-Place: Simplifiez la Gestion de vos Environnements et Tâches – <https://blog.stephane-robert.info/docs/developper/autres-outils/mise-en-place/>
Expand Down
6 changes: 6 additions & 0 deletions docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,12 @@ Arguments, flags, environment variables, and config files can all be defined in

You can leverage usage in file tasks to get auto-completion working, see [file tasks arguments](/tasks/file-tasks.html#arguments).

## What is pitchfork?

pitchfork (<https://pitchfork.jdx.dev/>) is a process manager for developers.

It handles daemon management with features like automatic restarts on failure, smart readiness checks, shell-based auto-start/stop when entering project directories, and cron-style scheduling for periodic tasks.

## VSCode for windows extension with error `spawn EINVAL`

In VSCode, many extensions will throw an "error spawn EINVAL" due to a [Node.js security fix](https://nodejs.org/en/blog/vulnerability/april-2024-security-releases-2#command-injection-via-args-parameter-of-child_processspawn-without-shell-option-enabled-on-windows-cve-2024-27980---high).
Expand Down
3 changes: 3 additions & 0 deletions man/man1/mise.1
Original file line number Diff line number Diff line change
Expand Up @@ -2970,6 +2970,9 @@ Run task(s) and watch for changes to rerun it

This command uses the `watchexec` tool to watch for changes to files and rerun the specified task(s).
It must be installed for this command to work, but you can install it with `mise use \-g watchexec@latest`.

For more advanced process management (daemon management, auto\-restart, readiness checks,
cron scheduling), see mise's sister project: https://pitchfork.jdx.dev
.PP
\fBUsage:\fR mise watch [OPTIONS] [<TASK>] [<ARGS>] ...
.PP
Expand Down
2 changes: 1 addition & 1 deletion mise.usage.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ cmd version help="Display the version of mise" {
}
cmd watch help="Run task(s) and watch for changes to rerun it" {
alias w
long_help "Run task(s) and watch for changes to rerun it\n\nThis command uses the `watchexec` tool to watch for changes to files and rerun the specified task(s).\nIt must be installed for this command to work, but you can install it with `mise use -g watchexec@latest`."
long_help "Run task(s) and watch for changes to rerun it\n\nThis command uses the `watchexec` tool to watch for changes to files and rerun the specified task(s).\nIt must be installed for this command to work, but you can install it with `mise use -g watchexec@latest`.\n\nFor more advanced process management (daemon management, auto-restart, readiness checks,\ncron scheduling), see mise's sister project: https://pitchfork.jdx.dev"
after_long_help "Examples:\n\n $ mise watch build\n Runs the \"build\" tasks. Will re-run the tasks when any of its sources change.\n Uses \"sources\" from the tasks definition to determine which files to watch.\n\n $ mise watch build --glob src/**/*.rs\n Runs the \"build\" tasks but specify the files to watch with a glob pattern.\n This overrides the \"sources\" from the tasks definition.\n\n $ mise watch build --clear\n Extra arguments are passed to watchexec. See `watchexec --help` for details.\n\n $ mise watch serve --watch src --exts rs --restart\n Starts an api server, watching for changes to \"*.rs\" files in \"./src\" and kills/restarts the server when they change.\n"
flag "-t --task-flag" help="Tasks to run" var=#true hide=#true {
arg <TASK_FLAG>
Expand Down
3 changes: 3 additions & 0 deletions src/cli/watch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ use std::path::PathBuf;
///
/// This command uses the `watchexec` tool to watch for changes to files and rerun the specified task(s).
/// It must be installed for this command to work, but you can install it with `mise use -g watchexec@latest`.
///
/// For more advanced process management (daemon management, auto-restart, readiness checks,
/// cron scheduling), see mise's sister project: https://pitchfork.jdx.dev
#[derive(Debug, clap::Args)]
#[clap(visible_alias = "w", verbatim_doc_comment, after_long_help = AFTER_LONG_HELP)]
pub struct Watch {
Expand Down
Loading