@@ -37,44 +37,38 @@ function findSectionStart(lines: string[], header: RegExp): number {
3737const bunOptionHandlers : OptionHandlers = {
3838 ...commonOptionHandlers ,
3939
40- silent ( complete ) {
41- complete ( 'true' , 'Enable silent mode' ) ;
42- complete ( 'false' , 'Disable silent mode' ) ;
43- } ,
44-
4540 backend ( complete ) {
46- complete ( 'clonefile' , 'Clone files (default, fastest) ' ) ;
47- complete ( 'hardlink' , 'Use hard links ' ) ;
48- complete ( 'symlink' , 'Use symbolic links ' ) ;
49- complete ( 'copyfile' , 'Copy files ' ) ;
41+ complete ( 'clonefile' , ' ' ) ;
42+ complete ( 'hardlink' , ' ' ) ;
43+ complete ( 'symlink' , ' ' ) ;
44+ complete ( 'copyfile' , ' ' ) ;
5045 } ,
5146
5247 linker ( complete ) {
53- complete ( 'isolated' , 'Isolated linker strategy ' ) ;
54- complete ( 'hoisted' , 'Hoisted linker strategy ' ) ;
48+ complete ( 'isolated' , ' ' ) ;
49+ complete ( 'hoisted' , ' ' ) ;
5550 } ,
5651
5752 omit ( complete ) {
58- complete ( 'dev' , 'Omit devDependencies ' ) ;
59- complete ( 'optional' , 'Omit optionalDependencies ' ) ;
60- complete ( 'peer' , 'Omit peerDependencies ' ) ;
53+ complete ( 'dev' , ' ' ) ;
54+ complete ( 'optional' , ' ' ) ;
55+ complete ( 'peer' , ' ' ) ;
6156 } ,
6257
6358 shell ( complete ) {
64- complete ( 'bun' , 'Use Bun shell ' ) ;
65- complete ( 'system' , 'Use system shell ' ) ;
59+ complete ( 'bun' , ' ' ) ;
60+ complete ( 'system' , ' ' ) ;
6661 } ,
6762
6863 'unhandled-rejections' ( complete ) {
69- complete ( 'strict' , 'Strict unhandled rejection handling ' ) ;
70- complete ( 'throw' , 'Throw on unhandled rejections ' ) ;
71- complete ( 'warn' , 'Warn on unhandled rejections ' ) ;
72- complete ( 'none' , 'Ignore unhandled rejections ' ) ;
73- complete ( 'warn-with-error-code' , 'Warn with error code ' ) ;
64+ complete ( 'strict' , ' ' ) ;
65+ complete ( 'throw' , ' ' ) ;
66+ complete ( 'warn' , ' ' ) ;
67+ complete ( 'none' , ' ' ) ;
68+ complete ( 'warn-with-error-code' , ' ' ) ;
7469 } ,
7570} ;
7671
77- /** ---------- Commands ---------- */
7872export function parseBunHelp ( helpText : string ) : Record < string , string > {
7973 const lines = toLines ( helpText ) ;
8074
0 commit comments