You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by mm...@apache.org on 2019/08/26 14:52:43 UTC

[accumulo] branch 1.9 updated: Fix importdirectory tab completion (#1335)

This is an automated email from the ASF dual-hosted git repository.

mmiller pushed a commit to branch 1.9
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/1.9 by this push:
     new 1c902ec  Fix importdirectory tab completion (#1335)
1c902ec is described below

commit 1c902ec44544582b7c6ce936b4125131b11fbfdd
Author: EdColeman <de...@etcoleman.com>
AuthorDate: Mon Aug 26 10:52:38 2019 -0400

    Fix importdirectory tab completion (#1335)
---
 .../apache/accumulo/shell/commands/ImportDirectoryCommand.java   | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/shell/src/main/java/org/apache/accumulo/shell/commands/ImportDirectoryCommand.java b/shell/src/main/java/org/apache/accumulo/shell/commands/ImportDirectoryCommand.java
index dc92293..6cc39be 100644
--- a/shell/src/main/java/org/apache/accumulo/shell/commands/ImportDirectoryCommand.java
+++ b/shell/src/main/java/org/apache/accumulo/shell/commands/ImportDirectoryCommand.java
@@ -17,12 +17,15 @@
 package org.apache.accumulo.shell.commands;
 
 import java.io.IOException;
+import java.util.Map;
+import java.util.Set;
 
 import org.apache.accumulo.core.client.AccumuloException;
 import org.apache.accumulo.core.client.AccumuloSecurityException;
 import org.apache.accumulo.core.client.TableNotFoundException;
 import org.apache.accumulo.shell.Shell;
 import org.apache.accumulo.shell.Shell.Command;
+import org.apache.accumulo.shell.Token;
 import org.apache.commons.cli.CommandLine;
 import org.apache.commons.cli.Options;
 
@@ -70,4 +73,10 @@ public class ImportDirectoryCommand extends Command {
     return opts;
   }
 
+  @Override
+  public void registerCompletion(final Token root,
+      final Map<CompletionSet,Set<String>> completionSet) {
+    registerCompletionForTables(root, completionSet);
+  }
+
 }