Skip to main content

preflight_id

Function preflight_id 

Source
pub fn preflight_id(engine: &mut Engine, id: &EntityId) -> Result<EntityId>
Expand description

The id a command looks up BEFORE it calls the engine (a hash refetch, a template-identity check, a referrer preview): a bare slug is resolved through the engine’s one rule (Engine::resolve_entity_id) so the preflight reads the entity the verb will act on, while the verb itself still receives the id the user typed and announces the resolution on its outcome. A full id returns unchanged.