Skip to main content

Module selector

Module selector 

Source
Expand description

The shared command selector (-s/-p) resolution. The shared command selector: how -s/-p/project/service flags resolve to a target set, identically for start, stop, and restart.

Each command’s plan (StartPlan, StopPlan, RestartPlan) is built on top of a crate::selector::Target so the selector semantics — including the -p-vs-selector mismatch rule — live in exactly one place and cannot drift between commands.

Structs§

ProjectMismatch
A -p flag disagreeing with a project/service selector prefix.

Enums§

Target
What a command’s selectors resolve to, before command-specific dispatch.

Functions§

resolve_target
Resolves -s/-p selectors into a Target.
split_selector
Splits a project/service selector into its parts, or None if unqualified. A part is only recognised when both sides are non-empty.