in commands/src/main/java/org/jclouds/karaf/commands/blobstore/completer/BlobStoreApiCompleter.java [42:60]
public int complete(String buffer, int cursor, List<String> candidates) {
try {
if (displayApisWithoutService) {
for (ApiMetadata apiMetadata : Apis.viewableAs(TypeToken.of(BlobStoreContext.class))) {
delegate.getStrings().add(apiMetadata.getId());
}
} else if (blobStoreServices != null) {
for (BlobStore blobStore : blobStoreServices) {
String id = blobStore.getContext().unwrap().getId();
if (Apis.withId(id) != null) {
delegate.getStrings().add(id);
}
}
}
} catch (Exception ex) {
// noop
}
return delegate.complete(buffer, cursor, candidates);
}