Class CompletionUtils

java.lang.Object
ubic.gemma.cli.completion.CompletionUtils

public class CompletionUtils extends Object
Utilities for generating completions.
Author:
poirigui
  • Constructor Details

    • CompletionUtils

      public CompletionUtils()
  • Method Details

    • generateCompleteCommand

      public static String[] generateCompleteCommand(CompletionType completionType, String... completeArgs)
      Generate a complete command suitable for EnumeratedByCommandConverter.

      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 in GemmaCLI.

      Parameters:
      completeArgs - additional arguments to pass to the completion command
    • writeCompletions

      public static void writeCompletions(CompletionSource completionSource, PrintStream out)