Standard Commands

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.

Help

class pwc.stdcmd.cmdHelp(controller)

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

class pwc.stdcmd.cmdShow(controller)

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

class pwc.stdcmd.cmdList(controller)

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

class pwc.stdcmd.cmdRun(controller)

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.

SET TERM

PowerConsole supports two types of command definitions:

  1. Commands terminated with special text sequence - terminator (for example SQL commands has to be terminated by ‘;’)
  2. Commands without terminator sequence.

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>

Table Of Contents

Previous topic

Extension Package Index

Next topic

PowerConsole Extension Specification

This Page