File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -66,11 +66,11 @@ export class Formatter {
66
66
shfmtConfig ?: Record < string , string | boolean > | null ,
67
67
) : Promise < string > {
68
68
const indentation : number = formatOptions ?. insertSpaces ? formatOptions . tabSize : 0
69
- const args : string [ ] = [ `--indent =${ indentation } ` ]
70
- if ( shfmtConfig ?. binaryNextLine ) args . push ( '-- binary-next-line' )
71
- if ( shfmtConfig ?. caseIndent ) args . push ( '-- case-indent' )
72
- if ( shfmtConfig ?. funcNextLine ) args . push ( '-- func-next-line' )
73
- if ( shfmtConfig ?. spaceRedirects ) args . push ( '-- space-redirects' )
69
+ const args : string [ ] = [ `-i =${ indentation } ` ] // --indent
70
+ if ( shfmtConfig ?. binaryNextLine ) args . push ( '-bn' ) // -- binary-next-line
71
+ if ( shfmtConfig ?. caseIndent ) args . push ( '-ci' ) // -- case-indent
72
+ if ( shfmtConfig ?. funcNextLine ) args . push ( '-fn' ) // -- func-next-line
73
+ if ( shfmtConfig ?. spaceRedirects ) args . push ( '-sr' ) // -- space-redirects
74
74
75
75
logger . debug ( `Shfmt: running "${ this . executablePath } ${ args . join ( ' ' ) } "` )
76
76
You can’t perform that action at this time.
0 commit comments