aboutsummaryrefslogtreecommitdiff
path: root/examples/test-examples.toml
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-28 20:49:06 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-28 20:49:06 +0800
commit8e7974651069c424b4386011f66adec291dc5b97 (patch)
treec8debe5dcda253513370644ae04c71e6af3d5d4f /examples/test-examples.toml
parent16999dd66dc6162184790ef5480d483d0fb81f4a (diff)
feat(example): add command macro example
Diffstat (limited to 'examples/test-examples.toml')
-rw-r--r--examples/test-examples.toml15
1 files changed, 15 insertions, 0 deletions
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!"