Skip to main content

set_deprecated

Function set_deprecated 

Source
pub async fn set_deprecated(
    store: &TemplateStore,
    id: &str,
    reason: Option<String>,
    by: Option<&str>,
    deprecated: bool,
) -> CliResult<TemplateStatus>
Available on crate feature templates only.
Expand description

Retire (Some) or revive (None) a template.

Deprecation is template-wide, not per version: a build that should not be used simply never gets launched (or gets deleted). A deprecated template keeps serving callers who pin or ride stable — retiring must not hard-break them — but every trigger warns and listings mark it. Returns the resulting status.