Polyman Documentation - v3.1.0
    Preparing search index...

    Function readCompletionNames

    • Reads names for dynamic completion from Config.json in a directory. Never throws: a missing file, invalid JSON or an unexpected shape gives an empty list, so the shell falls back to static completion.

      Parameters

      • kind: "solutions" | "generators" | "testsets" | "groups"

        Which names to read

      • Optionaltestset: string

        Testset whose groups to list (only used for groups)

      • cwd: string = ...

        Directory holding Config.json (default: current directory)

      Returns string[]

      Unique names, in the order they appear in the file

      readCompletionNames('solutions'); // ['main', 'wa-solution']
      readCompletionNames('groups', 'tests'); // ['samples', 'main']