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.
Config.json
Which names to read
Optional
Testset whose groups to list (only used for groups)
groups
Directory holding Config.json (default: current directory)
Unique names, in the order they appear in the file
readCompletionNames('solutions'); // ['main', 'wa-solution']readCompletionNames('groups', 'tests'); // ['samples', 'main'] Copy
readCompletionNames('solutions'); // ['main', 'wa-solution']readCompletionNames('groups', 'tests'); // ['samples', 'main']
Reads names for dynamic completion from
Config.jsonin 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.