Package ubic.gemma.cli.completion
Class CompletionUtils
- java.lang.Object
-
- ubic.gemma.cli.completion.CompletionUtils
-
public class CompletionUtils extends Object
Utilities for generating completions.- Author:
- poirigui
-
-
Constructor Summary
Constructors Constructor Description CompletionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String[]
generateCompleteCommand(CompletionType completionType, String... completeArgs)
Generate a complete command suitable forEnumeratedByCommandConverter
.static void
writeCompletions(CompletionSource completionSource, PrintStream out)
-
-
-
Method Detail
-
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
public static void writeCompletions(CompletionSource completionSource, PrintStream out)
-
-