From 847c61729b340db7fb1c8f426641c50070a931dc Mon Sep 17 00:00:00 2001 From: TheHolyRoger <39387497+TheHolyRoger@users.noreply.github.com> Date: Mon, 27 Sep 2021 12:53:44 +0100 Subject: [PATCH] Fix docs for `command_shortcuts`, YAML syntax is a list --- content/operation/config-files.mdx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/content/operation/config-files.mdx b/content/operation/config-files.mdx index 096d3be7..21c660fe 100644 --- a/content/operation/config-files.mdx +++ b/content/operation/config-files.mdx @@ -150,21 +150,23 @@ Import the lines of code to create a custom command shortcut. ``` # Command Shortcuts -# Define abbreviations for often used commands +# Define multiple abbreviations for often used commands # or batch grouped commands together command_shortcuts: # Assign shortcut command - command: spreads_refresh - +- command: spreads_refresh # Reference help: Set bid spread, ask spread, and order refresh time - # Argument Label arguments: [Bid Spread, Ask Spread, Order Refresh Time] - # Original config output with value output: [config bid_spread $1, config ask_spread $2, config order_refresh_time $3] + # Assign shortcut command +- command: spreads + help: Set bid and ask spread + arguments: ['Bid Spread', 'Ask Spread'] + output: ['config bid_spread $1', 'config ask_spread $2'] ```