Because PowerConsole is primarily designed as host system for user defined commands, the core distribution provides only handful of commands. All built-in command keywords are case insensitive.
Show list of help topics or help text for requested topic.
Uses UI_TEXT display with context ‘help’.
Syntax:
HELP [<argument>]
Without argument, it will list all internal commands that have help text and all registered special help topics. With argument, it will try to show help for topic or object specified by argument.
Show information about topic, object or sequence of objects.
Uses UI_TEXT and UI_OBJECT display interfaces with context ‘show’.
Syntax:
SHOW <topic> | <expression>
Topic: | topic name. |
---|---|
Expression: | object or iterable containing objects to list. |
Special topics are installed via extender classes derived from pwc.stdcmd.ShowExtender class (which is specialized Command class).
List information extracted from object or sequence of objects.
Uses UI_OBJECTLIST and UI_TABLE display interface with context ‘list’.
Syntax:
LIST [<attribute>[,<attribute>] IN] <expression>
Attribute: | attribute name. |
---|---|
Expression: | object or iterable containing objects to list. |
Uses tabular output when attributes are specified, otherwise uses object output.
Run script as if commands had been entered at the console.
Syntax:
RUN <expression>
Expression: | has to be a script filename or iterable containing lines to execute. |
---|
PowerConsole supports two types of command definitions:
The default terminator is ‘;’ and could be changed by directly assigning new value to Terminator attribute
PowerConsole also implements command SET TERM to change the command terminator sequence in interactive sessions.
Syntax:
SET TERM <new-terminator> <current-terminator>