pub struct EditMetaCommand {Show 17 fields
pub target: String,
pub doc: Option<String>,
pub tags: Option<String>,
pub add_tags: Vec<String>,
pub rm_tags: Vec<String>,
pub clear_tags: bool,
pub examples: bool,
pub add_example: bool,
pub at: Option<usize>,
pub clear_examples: bool,
pub file: Option<String>,
pub code: Option<String>,
pub input_format: SyntaxInputFormat,
pub rm_tests: Vec<String>,
pub expect_revision: Option<String>,
pub dry_run: bool,
pub format: String,
}Expand description
update definition metadata (doc, tags, examples, tests removals)
Fields§
§target: Stringtarget in format “namespace/definition”
doc: Option<String>set definition documentation text verbatim
replace tags with a comma-separated list (pass “” to clear)
add a tag (repeatable)
remove a tag (repeatable)
clear all tags
examples: boolreplace all examples from –file, –code, or stdin (one top-level quote per example)
add_example: boolappend or insert one example from –file, –code, or stdin
at: Option<usize>insertion index for –add-example (default: append to end)
clear_examples: boolclear all examples
file: Option<String>read example payload from file (used with –examples or –add-example)
code: Option<String>inline example payload (used with –examples or –add-example)
input_format: SyntaxInputFormatsyntax-node transport format for –add-example: cirru, json-ast, or compatibility mode auto
rm_tests: Vec<String>remove a named test from the definition (repeatable)
expect_revision: Option<String>require snapshot content to match this revision before writing
dry_run: boolpreview metadata changes without writing the snapshot
format: Stringoutput format: human (default), edn (primary structured data), or json (interoperability)