Version: 5.7.0
\def
Define a variable with a given name and value.
note
This command is not available in non-interactive mode.
Usage:
bash
\def [name] [value]
Examples:
- Setting the shell prompt:
bash
\def prompt "{{config_name}}@SQL> "
- Configuring the banner:
bash
\def banner "Hazelcast CLC {{.version}} (c) 2023 Hazelcast Inc. {{nl}}
Log Path : {{.log_path}}"
In these examples, the config_name action, and the version and log_path placeholders are used.
Other available actions are:
- date
- time
- nl is used to add a new line, which is equivalent of
\n. - repeat
- each
Other available placeholders are:
- config
- version
- log_path
- log_level