(opts, compls)
| 160 | // If any of the items are arrays, then join them with a space. |
| 161 | // e.g. returning ['a', 'b c', ['d', 'e']] would allow it to expand to: 'a', 'b c', or 'd' 'e' |
| 162 | wrap (opts, compls) { |
| 163 | if (opts.partialWord) { |
| 164 | compls = compls.filter(c => c.startsWith(opts.partialWord)) |
| 165 | } |
| 166 | |
| 167 | if (compls.length > 0) { |
| 168 | output.standard(compls.join('\n')) |
| 169 | } |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | const dumpScript = async (p) => { |