Skip to content

Commit

Permalink
Add additonal commands to cli completion
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Lemos authored and kokosing committed Jul 14, 2021
1 parent f18a371 commit 05bee54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/trino-cli/src/main/java/io/trino/cli/Completion.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@
import java.util.List;

import static java.util.Arrays.asList;
import static java.util.Collections.singletonList;

public final class Completion
{
private Completion() {}

public static Completer commandCompleter()
{
return new AggregateCompleter(buildArgumentCompleter("CREATE", singletonList("TABLE")),
return new AggregateCompleter(buildArgumentCompleter("ALTER", asList("SCHEMA", "TABLE")),
buildArgumentCompleter("CREATE", asList("SCHEMA", "TABLE")),
buildArgumentCompleter("DESCRIBE"),
buildArgumentCompleter("DROP", singletonList("TABLE")),
buildArgumentCompleter("DROP", asList("SCHEMA", "TABLE")),
buildArgumentCompleter("EXPLAIN"),
buildArgumentCompleter("HELP"),
buildArgumentCompleter("QUIT"),
Expand Down

0 comments on commit 05bee54

Please sign in to comment.