We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fc9819 commit b4ca3efCopy full SHA for b4ca3ef
server/src/snippets.ts
@@ -292,6 +292,22 @@ export const SNIPPETS: BashCompletionItem[] = [
292
'done',
293
].join('\n'),
294
},
295
+ {
296
+ label: 'while-getopts',
297
+ documentation: 'while with getopts argument-parsing',
298
+ insertText: [
299
+ 'while getopts "${1:patterns}" ${2:expression}; do',
300
+ '\tcase "\\${$2}" in',
301
+ '\t\t${3:pattern})',
302
+ '\t\t\t${4:command ...}',
303
+ '\t\t\t;;',
304
+ '\t\t*)',
305
+ '\t\t\t${5:command ...}',
306
307
+ '\tesac',
308
+ 'done',
309
+ ].join('\n'),
310
+ },
311
{
312
label: 'until',
313
documentation: 'until operator',
0 commit comments