Skip to main content

migrate_managed_blocks

Function migrate_managed_blocks 

Source
pub fn migrate_managed_blocks(
    request: MigrateManagedBlocksRequest<'_>,
) -> Result<MigrateManagedBlocksReport>
Expand description

Removes caller-provided legacy managed markers and upserts the equivalent shellcomp block.

This helper is intended for CLI projects that previously shipped their own managed completion blocks and want to migrate to shellcomp without leaving duplicate startup wiring behind.

For shells that do not use a managed startup file, such as Fish, this operation is a no-op.