org.sonatype.gshell.command
Interface CommandContext


public interface CommandContext

Provides commands with the context of it's execution.

Since:
2.0
Author:
Jason Dillon

Method Summary
 Object[] getArguments()
          Provides access to the arguments to the command.
 IO getIo()
          The input/output for the command.
 Shell getShell()
          The invoking shell instance.
 Variables getVariables()
          The variables for the command.
 

Method Detail

getShell

Shell getShell()
The invoking shell instance.

Returns:
The invoking shell instance; never null.

getArguments

Object[] getArguments()
Provides access to the arguments to the command.

Returns:
The command arguments; never null.

getIo

IO getIo()
The input/output for the command.

Returns:
Command input/output; never null.

getVariables

Variables getVariables()
The variables for the command.

Returns:
Command variables; never null.


Copyright © 2008-2011 Sonatype. All Rights Reserved.