Skip to content

Parameterized Commands

Commands can include named parameters using {{name}} or {{name:default}} syntax. When you run a parameterized command, TuiBookie prompts you for each parameter value before executing.

Syntax

  • {{name}} -- Prompts for a value with no default
  • {{name:default}} -- Prompts for a value, pre-filled with the default

Example

A bookmark with the command:

ssh {{user:admin}}@{{server}}

will prompt for user (pre-filled with admin) and server before running.

A live preview of the resolved command updates as you type.

TuiBookie v1.6.0
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Staging servers
> app ssh admin@server
  copy stuff cp -r somefolder someotherfolder
  database ssh dev@staging-db.example.com
[a]dd [e]dit [d]elete [enter] run [←/esc] back [q]uit

Visual Indicators

In the bookmark list, parameters are highlighted in orange so you can tell at a glance which commands will prompt for input. Commands without parameters run immediately as before.