• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

daniel-sc / bash-shell-to-bat-converter / 4843828198

pending completion
4843828198

Pull #67

github

GitHub
Merge 17513e6a8 into d1012a531
Pull Request #67: feat: command expansion - fixes #66

65 of 83 branches covered (78.31%)

Branch coverage included in aggregate %.

57 of 57 new or added lines in 3 files covered. (100.0%)

136 of 147 relevant lines covered (92.52%)

16.91 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/rm-handler.ts
1
import {CommandHandler} from './command-handler';
2
import {splitParams} from './util';
1✔
3

4
export class RmHandler implements CommandHandler {
1✔
5

6
    constructor(private defaultHandler: (command: any) => string) {
22✔
7
    }
8

9
    handle(command: any): string {
1✔
10
        const {singleDashParams, argList} = splitParams(command);
3✔
11
        const winParams: string[] = [];
3✔
12
        singleDashParams.forEach(suffix => {
3✔
13
            if (suffix.text.indexOf('r') >= 0) {
3✔
14
                winParams.push('/S')
3✔
15
            }
16
        });
17
        return `DEL ${winParams.join(' ')} ${argList.map(this.defaultHandler).join(' ')}`; // converting assures paths are fixed..
3✔
18
    }
19
}
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc