});
shell.add("sCatName", new ShellCommand() {
public String execute(Shell ci, String[] args) throws Exception {
SongCatalog ac = en.getSongCatalogByName(args[1]);
if (ac != null) {
System.out.printf("%s %s\n", ac.getID(), ac.getName());
}
return "";
}
public String getHelp() {
return "get an song catalog by name";
}
});
shell.add("sCatID", new ShellCommand() {
public String execute(Shell ci, String[] args) throws Exception {
SongCatalog ac = en.getSongCatalogByID(args[1]);
if (ac != null) {
System.out.printf("%s %s\n", ac.getID(), ac.getName());
for (SongCatalogItem sci : ac.read(0, 30)) {
System.out.println(sci);
}
}
return "";
}