task

Invoke an action with a given set of parameters.

Description:

A subcommand of command. When the defined command is invoked, it invokes the named action. Fixed and variable parameters for the action may be specified. The named action must be in the current package and already be defined.

Invocation

task name { description }

Arguments

name
The name of the action to be invoked.
description
A list of parameter definitions using the taskparam and taskinherit keywords.

Examples:

command abc {

task xyz {

taskparam {method=list}

taskparam {value=1.0}

taskinherit ndf

}

Obeying command abc filename will be equivalent to obeying command xyz with parameters method and value set as specified and parameter ndf set to filename.


ADAM:

The appropriate command definitions are written to the .icl and .csh files. Note that the taskinherit keyword has no effect. Anything following the primary command invocation will be appended to the invocation of the named action, following the fixed parameters.
IRAF:
A CL procedure is created and a command defined in the package .cl file to run it. The procedure will have parameters as defined by any taskinherit keywords and will invoke the named action with the inherited parameter values followed by the fixed parameters, all in keyword=value form.