public class Shell extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Shell.Context |
Modifier and Type | Field and Description |
---|---|
static String |
VAR_COMMAND_LINE |
static String |
VAR_COMPLETIONS |
static String |
VAR_CONTEXT |
static String |
VAR_EXCEPTION |
static String |
VAR_LOCATION |
static String |
VAR_PROCESSOR |
static String |
VAR_PROMPT |
static String |
VAR_READER |
static String |
VAR_RESULT |
static String |
VAR_RPROMPT |
static String |
VAR_SCOPE |
static String |
VAR_SESSION |
static String |
VAR_TERMINAL |
Constructor and Description |
---|
Shell(Shell.Context context,
org.apache.felix.service.command.CommandProcessor processor) |
Shell(Shell.Context context,
org.apache.felix.service.command.CommandProcessor processor,
String profile) |
Shell(Shell.Context context,
org.apache.felix.service.command.CommandProcessor processor,
org.apache.felix.service.threadio.ThreadIO tio,
String profile) |
Modifier and Type | Method and Description |
---|---|
static String |
expand(org.apache.felix.service.command.CommandSession session,
String name,
String def) |
static Set<String> |
getCommands(org.apache.felix.service.command.CommandSession session) |
static Map<String,List<org.jline.builtins.Completers.CompletionData>> |
getCompletions(org.apache.felix.service.command.CommandSession session) |
Shell.Context |
getContext() |
static org.jline.reader.ParsedLine |
getParsedLine(org.apache.felix.service.command.CommandSession session) |
static org.apache.felix.service.command.CommandProcessor |
getProcessor(org.apache.felix.service.command.CommandSession session) |
static String |
getPrompt(org.apache.felix.service.command.CommandSession session) |
static org.jline.reader.LineReader |
getReader(org.apache.felix.service.command.CommandSession session) |
static String |
getRPrompt(org.apache.felix.service.command.CommandSession session) |
static org.jline.terminal.Terminal |
getTerminal(org.apache.felix.service.command.CommandSession session) |
Object |
gosh(org.apache.felix.service.command.CommandSession currentSession,
String[] argv) |
void |
help(org.apache.felix.service.command.CommandSession session) |
void |
help(org.apache.felix.service.command.CommandSession session,
String name) |
static CharSequence |
readScript(URI script) |
static String |
resolve(org.apache.felix.service.command.CommandSession session,
String command) |
Object |
sh(org.apache.felix.service.command.CommandSession session,
String[] argv) |
Object |
source(org.apache.felix.service.command.CommandSession session,
String script) |
void |
stop() |
public static final String VAR_COMPLETIONS
public static final String VAR_COMMAND_LINE
public static final String VAR_READER
public static final String VAR_SESSION
public static final String VAR_PROCESSOR
public static final String VAR_TERMINAL
public static final String VAR_EXCEPTION
public static final String VAR_RESULT
public static final String VAR_LOCATION
public static final String VAR_PROMPT
public static final String VAR_RPROMPT
public static final String VAR_SCOPE
public static final String VAR_CONTEXT
public Shell(Shell.Context context, org.apache.felix.service.command.CommandProcessor processor)
public Shell(Shell.Context context, org.apache.felix.service.command.CommandProcessor processor, String profile)
public Shell(Shell.Context context, org.apache.felix.service.command.CommandProcessor processor, org.apache.felix.service.threadio.ThreadIO tio, String profile)
public Shell.Context getContext()
public static org.jline.terminal.Terminal getTerminal(org.apache.felix.service.command.CommandSession session)
public static org.jline.reader.LineReader getReader(org.apache.felix.service.command.CommandSession session)
public static org.apache.felix.service.command.CommandProcessor getProcessor(org.apache.felix.service.command.CommandSession session)
public static Map<String,List<org.jline.builtins.Completers.CompletionData>> getCompletions(org.apache.felix.service.command.CommandSession session)
public static Set<String> getCommands(org.apache.felix.service.command.CommandSession session)
public static org.jline.reader.ParsedLine getParsedLine(org.apache.felix.service.command.CommandSession session)
public static String getPrompt(org.apache.felix.service.command.CommandSession session)
public static String getRPrompt(org.apache.felix.service.command.CommandSession session)
public static String expand(org.apache.felix.service.command.CommandSession session, String name, String def)
public static String resolve(org.apache.felix.service.command.CommandSession session, String command)
public static CharSequence readScript(URI script) throws Exception
Exception
public void stop()
public Object gosh(org.apache.felix.service.command.CommandSession currentSession, String[] argv) throws Exception
Exception
public Object sh(org.apache.felix.service.command.CommandSession session, String[] argv) throws Exception
Exception
public Object source(org.apache.felix.service.command.CommandSession session, String script) throws Exception
Exception
public void help(org.apache.felix.service.command.CommandSession session)
public void help(org.apache.felix.service.command.CommandSession session, String name)
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.