From e23820adf2927f92c193cc0105890b9bf53ec11c Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Wed, 5 Nov 2025 16:55:04 -0700 Subject: [PATCH] docs: Created an example macro configuration file --- config.macro.example.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 config.macro.example.yaml diff --git a/config.macro.example.yaml b/config.macro.example.yaml new file mode 100644 index 0000000..ba83d07 --- /dev/null +++ b/config.macro.example.yaml @@ -0,0 +1,15 @@ +variables: # A list of positional variables that the macro uses + - name: positional_1 # The name of the positional variable. + default: null # Since no default value is provided, this argument is required; 'null' by default + rest: false # Do not collect all remaining arguments into this variable; 'false' by default + - name: positional_2_with_default_value + default: '2' # A default value for the positional argument if no value is provided + rest: false + - name: collect_remaining_args + rest: true # Collect all remaining arguments into this variable + # Since no 'default' is defined, at least one additional argument is required +steps: # The sequence of REPL commands to execute + - .info + - .agent {{positional_1}} + - What is 2 + {{positional_2_with_default_value}}? + - '{{collect_remaining_args}}' \ No newline at end of file