public class GrouperShell extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
NAME |
static boolean |
runFromGsh
if running from GSH
|
Modifier | Constructor and Description |
---|---|
protected |
GrouperShell(edu.internet2.middleware.grouper.app.gsh.CommandReader r) |
Modifier and Type | Method and Description |
---|---|
protected static void |
error(bsh.Interpreter i,
Exception e) |
protected static void |
error(bsh.Interpreter interpreter,
Exception e,
String msg) |
protected static Object |
get(bsh.Interpreter i,
String key) |
protected static List |
getHistory(bsh.Interpreter i) |
protected static GrouperSession |
getSession(bsh.Interpreter i) |
protected static boolean |
isDebug(bsh.Interpreter i) |
protected static boolean |
isDevel(bsh.Interpreter i) |
protected static boolean |
isOurCommand(bsh.Interpreter i) |
protected static boolean |
isTimed(bsh.Interpreter i) |
static void |
main(String[] args)
Run
GrouperShell . |
protected void |
run() |
protected static void |
set(bsh.Interpreter i,
String key,
Object obj) |
protected static void |
setHistory(bsh.Interpreter i,
int cnt,
String cmd) |
static void |
setOurCommand(bsh.Interpreter i,
boolean b) |
protected static final String NAME
public static boolean runFromGsh
protected GrouperShell(edu.internet2.middleware.grouper.app.gsh.CommandReader r) throws GrouperShellException
GrouperShellException
public static void main(String[] args)
GrouperShell
.
// Launch GrouperShell in interactive mode % gsh.sh // Run GrouperShell script % gsh.sh script.gsh // Read commands from STDIN % gsh.sh -
args
- protected static void error(bsh.Interpreter i, Exception e)
protected static Object get(bsh.Interpreter i, String key) throws bsh.EvalError
bsh.EvalError
protected static List getHistory(bsh.Interpreter i) throws bsh.EvalError
bsh.EvalError
protected static GrouperSession getSession(bsh.Interpreter i) throws GrouperShellException
GrouperShellException
protected static boolean isDebug(bsh.Interpreter i)
protected static boolean isOurCommand(bsh.Interpreter i)
protected static boolean isTimed(bsh.Interpreter i)
protected static void set(bsh.Interpreter i, String key, Object obj) throws bsh.EvalError
bsh.EvalError
protected static boolean isDevel(bsh.Interpreter i)
protected static void setHistory(bsh.Interpreter i, int cnt, String cmd) throws bsh.EvalError
bsh.EvalError
public static void setOurCommand(bsh.Interpreter i, boolean b)
protected void run() throws GrouperShellException
GrouperShellException
Copyright © 2016 Internet2. All rights reserved.