Expand description
caproni edit-mode-process-supervisor: hidden internal command started
by caproni run for each reloader.
Port of Go’s cmd/editmodeprocesssupervisor package.
Structs§
- CmdStatus
- The outcome of a
SupervisedCmdrun. - Edit
Mode Process Supervisor Args - Process
Options - Options for a supervised child process.
- Process
Status - Ported from
overseer.ProcessJSON’s subsetcollectProcessErrorsreads. - Supervised
Cmd - A single child process, configured but not yet started.
Enums§
- Shellwords
Error - Ported from
escapeFilename-adjacentshellwords.Parseerror path. This crate has nomattn/go-shellwordsequivalent dependency, so a minimal POSIX-lite splitter (single/double quotes, backslash escapes outside quotes) is implemented here directly – just enough to detect the unbalanced-quote case Go’s library rejects, without adding a new external dependency for one narrow use. - Supervisor
Error - Ported from the package-level
varsentinel errors.
Constants§
- COMMAND_
NAME - DEFAULT_
PROCESS_ CONTEXT - Default process context, mirroring Go’s
latest.ProcessContextMirrord.
Functions§
- collect_
process_ errors - Port of
collectProcessErrors: checks the final state of each named process and returns a combined error for any that exited abnormally. Processes in the “interrupted” state are not treated as errors since they were stopped intentionally (e.g. viaSIGTERMfrom the user). - new_cmd
- Port of
overseer.NewCmd(name, args, opts). - process_
options - Port of
processOptions. - run
- run_
supervisor - Port of
editmodeprocesssupervisor.run: loads the configuration, resolves the edit-mode processes configured forreloader_namethat run inproc_context, and supervises them. - split_
command - Splits a command string into words, honoring single/double quotes and
backslash escapes outside of quotes. Ported (narrowly) from
mattn/go-shellwords’sParse.