Package ubic.gemma.cli.completion
Class CompletionUtils
java.lang.Object
ubic.gemma.cli.completion.CompletionUtils
Utilities for generating completions.
- Author:
- poirigui
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]
generateCompleteCommand
(CompletionType completionType, String... completeArgs) Generate a complete command suitable forEnumeratedByCommandConverter
.static void
writeCompletions
(CompletionSource completionSource, PrintStream out)
-
Constructor Details
-
CompletionUtils
public CompletionUtils()
-
-
Method Details
-
generateCompleteCommand
public static String[] generateCompleteCommand(CompletionType completionType, String... completeArgs) Generate a complete command suitable forEnumeratedByCommandConverter
.The command refers to the
CompleteCli
tool. If you don't need a full Spring context to produce completions, consider implementing a completion command directly inGemmaCLI
.- Parameters:
completeArgs
- additional arguments to pass to the completion command
-
writeCompletions
-