public class UpdateBot extends Object
| Constructor and Description |
|---|
UpdateBot() |
| Modifier and Type | Method and Description |
|---|---|
Configuration |
getConfig() |
CommandSupport |
getLastCommend() |
org.slf4j.Logger |
getLOG() |
static void |
main(String[] args) |
static CommandSupport |
parseCommand(String[] args,
Configuration config,
boolean defaultToHelp)
Parses the command from the given command line arguments or returns null if there is no command found
|
List<Map<String,String>> |
poll()
Returns the list of PullRequests / Issues and their status from the previous command
|
CommandSupport |
run(String[] args)
Runs a command
|
void |
setConfig(Configuration config) |
void |
setLoggerOutput(PrintStream out) |
public static void main(String[] args)
public static CommandSupport parseCommand(String[] args, Configuration config, boolean defaultToHelp)
public Configuration getConfig()
public void setConfig(Configuration config)
public void setLoggerOutput(PrintStream out)
public CommandSupport run(String[] args) throws IOException
IOExceptionpublic List<Map<String,String>> poll() throws IOException
IOExceptionpublic org.slf4j.Logger getLOG()
public CommandSupport getLastCommend()
Copyright © 2076–2017 Red Hat. All rights reserved.