From 6f3802fd9f39c4e5847d130b4417b5cdfb66972d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 22 Feb 2026 22:53:09 +0900 Subject: refactor(console): add console_format! proc macro and migrate all commands Introduce a Symfony Console-style tag macro that replaces verbose patterns like `console::info(&format!("text {name}"))` with `console_format!("text {name}")`. Supports all 6 tag types (info, comment, error, question, highlight, warning) with format argument distribution across multiple tagged segments. Co-Authored-By: Claude Opus 4.6 --- crates/mozart-console-macros/Cargo.toml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 crates/mozart-console-macros/Cargo.toml (limited to 'crates/mozart-console-macros/Cargo.toml') diff --git a/crates/mozart-console-macros/Cargo.toml b/crates/mozart-console-macros/Cargo.toml new file mode 100644 index 0000000..19a2fe5 --- /dev/null +++ b/crates/mozart-console-macros/Cargo.toml @@ -0,0 +1,15 @@ +[package] +name = "mozart-console-macros" +version.workspace = true +edition.workspace = true + +[lib] +proc-macro = true + +[dependencies] +proc-macro2.workspace = true +quote.workspace = true +syn.workspace = true + +[dev-dependencies] +mozart-core.workspace = true -- cgit v1.3.1