Macros let setup files define reusable command shorthands that test files can invoke by name or override with their own definition. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
14 lines
160 B
Plaintext
14 lines
160 B
Plaintext
@def greet echo "hello world"
|
|
@def multi echo "line one"; \
|
|
echo "line two"
|
|
|
|
$ greet
|
|
hello world
|
|
|
|
$ multi
|
|
line one
|
|
line two
|
|
|
|
$ echo "not a macro"
|
|
not a macro
|