From 8e7974651069c424b4386011f66adec291dc5b97 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Tue, 28 Jul 2026 20:49:06 +0800 Subject: feat(example): add command macro example --- examples/test-examples.toml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'examples/test-examples.toml') diff --git a/examples/test-examples.toml b/examples/test-examples.toml index e450919..b74c9a5 100644 --- a/examples/test-examples.toml +++ b/examples/test-examples.toml @@ -312,3 +312,18 @@ expect.result = "Result: 1.3333334" command = "calc 4 / 3 --round" expect.exit-code = 0 expect.result = "Result: 1" + +[[test.example-command-macro]] +command = "hello world" +expect.exit-code = 0 +expect.result = "Hello, World" + +[[test.example-command-macro]] +command = "greet-someone Alice" +expect.exit-code = 0 +expect.result = "Hello, Alice" + +[[test.example-command-macro]] +command = "goodbye" +expect.exit-code = 0 +expect.result = "Goodbye!" -- cgit