pub fn cmd_prompt_save(
name: String,
content: Option<String>,
description: Option<String>,
tags: Option<String>,
domain: Option<String>,
from_file: Option<PathBuf>,
from_stdin: bool,
no_enrich: bool,
dry_run: bool,
) -> Result<(), Box<dyn Error>>Expand description
Executes the prompt save subcommand (legacy interface).
§Arguments
name- Prompt name (kebab-case).content- Optional inline content.description- Optional description.tags- Optional comma-separated tags.domain- Optional domain scope.from_file- Optional file path to load from.from_stdin- Whether to read from stdin.no_enrich- Skip LLM-powered enrichment.dry_run- Show enriched template without saving.
§Errors
Returns an error if saving fails.