/** * Called while producing usage. This is a good method to override * to render the general description of the command that goes beyond * a single-line summary. */ protected void printUsageSummary(PrintStream stderr) { stderr.println(getShortDescription()); }
private int showAllCommands() { Map<String,CLICommand> commands = new TreeMap<>(); for (CLICommand c : CLICommand.all()) commands.put(c.getName(),c); for (CLICommand c : commands.values()) { stderr.println(" "+c.getName()); stderr.println(" "+c.getShortDescription()); } return 0; }
/** * Called while producing usage. This is a good method to override * to render the general description of the command that goes beyond * a single-line summary. */ protected void printUsageSummary(PrintStream stderr) { stderr.println(getShortDescription()); }
/** * Called while producing usage. This is a good method to override to render * the general description of the command that goes beyond a single-line * summary. */ protected void printUsageSummary(PrintStream stderr) { stderr.println(getShortDescription()); }
/** * Called while producing usage. This is a good method to override * to render the general description of the command that goes beyond * a single-line summary. */ protected void printUsageSummary(PrintStream stderr) { stderr.println(getShortDescription()); }
/** * Called while producing usage. This is a good method to override * to render the general description of the command that goes beyond * a single-line summary. */ protected void printUsageSummary(PrintStream stderr) { stderr.println(getShortDescription()); }
/** * Called while producing usage. This is a good method to override * to render the general description of the command that goes beyond * a single-line summary. */ protected void printUsageSummary(PrintStream stderr) { stderr.println(getShortDescription()); }
private int showAllCommands() { Map<String,CLICommand> commands = new TreeMap<String,CLICommand>(); for (CLICommand c : CLICommand.all()) commands.put(c.getName(),c); for (CLICommand c : commands.values()) { stderr.println(" "+c.getName()); stderr.println(" "+c.getShortDescription()); } return 0; }
protected int run() { if (!Hudson.getInstance().hasPermission(Hudson.READ)) { stderr.println("You must authenticate to access this Hudson.\n" + "Use --username/--password/--password-file parameters or login command."); return 0; } Map<String,CLICommand> commands = new TreeMap<String,CLICommand>(); for (CLICommand c : CLICommand.all()) commands.put(c.getName(),c); for (CLICommand c : commands.values()) { stderr.println(" "+c.getName()); stderr.println(" "+c.getShortDescription()); } return 0; } }
protected int run() { if (!Hudson.getInstance().hasPermission(Hudson.READ)) { stderr.println("You must authenticate to access this Hudson.\n" + "Use --username/--password/--password-file parameters or login command."); return 0; } Map<String,CLICommand> commands = new TreeMap<String,CLICommand>(); for (CLICommand c : CLICommand.all()) commands.put(c.getName(),c); for (CLICommand c : commands.values()) { stderr.println(" "+c.getName()); stderr.println(" "+c.getShortDescription()); } return 0; } }
protected int run() { if (!Hudson.getInstance().hasPermission(Hudson.READ)) { stderr.println("You must authenticate to access this Hudson.\n" + "Use --username/--password/--password-file parameters or login command."); return 0; } Map<String,CLICommand> commands = new TreeMap<String,CLICommand>(); for (CLICommand c : CLICommand.all()) commands.put(c.getName(),c); for (CLICommand c : commands.values()) { stderr.println(" "+c.getName()); stderr.println(" "+c.getShortDescription()); } return 0; } }
protected int run() { if (!Hudson.getInstance().hasPermission(Hudson.READ)) { stderr.println("You must authenticate to access this Hudson.\n" + "Use --username/--password/--password-file parameters or login command."); return 0; } Map<String, CLICommand> commands = new TreeMap<String, CLICommand>(); for (CLICommand c : CLICommand.all()) { commands.put(c.getName(), c); } for (CLICommand c : commands.values()) { stderr.println(" " + c.getName()); stderr.println(" " + c.getShortDescription()); } return 0; } }