public class ShellContextImpl extends Object implements ShellContext
ShellContext| Constructor and Description |
|---|
ShellContextImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
getExecutedCommand()
Returns last executed command
|
Map<String,String> |
getParameters()
Returns a map with current parameters written on shell
|
String |
getProfile()
Returns value of --profile global parameter
|
boolean |
isForce()
Check if --force global parameter has been defined with 'true' value.
|
void |
setExecutedCommand(String command)
Set value of current executed command
|
void |
setParameter(String key,
String value)
Add new parameter on current parameters map.
|
void |
setParameters(Map<String,String> parameters)
Set a list of parameters like defined parameters on Spring Roo Shell
|
public boolean isForce()
ShellContextisForce in interface ShellContextpublic String getProfile()
ShellContextgetProfile in interface ShellContextpublic String getExecutedCommand()
ShellContextgetExecutedCommand in interface ShellContextpublic Map<String,String> getParameters()
ShellContextgetParameters in interface ShellContextpublic void setExecutedCommand(String command)
command - public void setParameters(Map<String,String> parameters)
parameters - Copyright © 2009–2017 Pivotal Software, Inc.. All rights reserved.