@@ -25,13 +25,13 @@ Additional features not found the original version:
25
25
2 . Download the script
26
26
- Install via jsr.io
27
27
``` shell
28
- curl https://jsr.io/@fry69/files-to-prompt-ts/0.1.7 /files-to-prompt.ts > ftp.ts
28
+ curl https://jsr.io/@fry69/files-to-prompt-ts/0.2.0 /files-to-prompt.ts > ftp.ts
29
29
```
30
30
31
31
- Install via GitHub
32
32
33
33
` ` ` shell
34
- curl https://raw.githubusercontent.com/fry69/files-to-prompt-ts/v0.1.7 /files-to-prompt.ts > ftp.ts
34
+ curl https://raw.githubusercontent.com/fry69/files-to-prompt-ts/v0.2.0 /files-to-prompt.ts > ftp.ts
35
35
` ` `
36
36
37
37
3. Make the script executable with ` chmod +x ftp.ts`
@@ -83,39 +83,43 @@ This tool includes a set of tests to ensure it works as expected. You can run th
83
83
bun test --coverage
84
84
```
85
85
86
- Recent test status (v0.1.7 ):
86
+ Recent test status (v0.2.0 ):
87
87
88
88
```
89
89
bun test v1.1.4 (fbe2fe0c)
90
90
91
91
files-to-prompt.test.ts:
92
- ✓ files-to-prompt.ts > should include single file passed on the command line [14.48ms]
93
- ✓ files-to-prompt.ts > should include multiple files passed on the command line [7.38ms]
94
- ✓ files-to-prompt.ts > should include files in directories passed on the command line [7.51ms]
95
- ✓ files-to-prompt.ts > should include files a few levels deep in a directory structure [6.27ms]
96
- ✓ files-to-prompt.ts > should exclude files matching patterns passed via --ignore [7.65ms]
97
- ✓ files-to-prompt.ts > should exclude files matching patterns passed via multiple --ignore [6.41ms]
98
- ✓ files-to-prompt.ts > should fail when --ignore gets passed without an argument [5.84ms]
99
- ✓ files-to-prompt.ts > should exclude files matching patterns in .gitignore [7.26ms]
100
- ✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore [7.50ms]
101
- ✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore in different directories [6.56ms]
102
- ✓ files-to-prompt.ts > should include hidden files and directories when --include-hidden is passed [7.16ms]
103
- ✓ files-to-prompt.ts > should ignore .gitignore files when --ignore-gitignore is passed [6.28ms]
104
- ✓ files-to-prompt.ts > should skip binary files [6.94ms]
105
- ✓ files-to-prompt.ts > should fail silently if isBinaryFile() gets called with invalid path [0.91ms]
106
- ✓ files-to-prompt.ts > should skip FIFOs [16.39ms]
107
- ✓ files-to-prompt.ts > should fail with error message if path does not exist [5.61ms]
92
+ ✓ files-to-prompt.ts > should include single file passed on the command line [11.76ms]
93
+ ✓ files-to-prompt.ts > should include multiple files passed on the command line [6.84ms]
94
+ ✓ files-to-prompt.ts > should include files in directories passed on the command line [7.63ms]
95
+ ✓ files-to-prompt.ts > should include files a few levels deep in a directory structure [6.67ms]
96
+ ✓ files-to-prompt.ts > should exclude files matching patterns passed via --ignore [7.41ms]
97
+ ✓ files-to-prompt.ts > should exclude files matching patterns passed via multiple --ignore [6.67ms]
98
+ ✓ files-to-prompt.ts > should fail when --ignore gets passed without an argument [5.96ms]
99
+ ✓ files-to-prompt.ts > should exclude files matching patterns in .gitignore [6.81ms]
100
+ ✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore [8.08ms]
101
+ ✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore in different directories [6.91ms]
102
+ ✓ files-to-prompt.ts > should include hidden files and directories when --include-hidden is passed [8.42ms]
103
+ ✓ files-to-prompt.ts > should ignore .gitignore files when --ignore-gitignore is passed [6.80ms]
104
+ ✓ files-to-prompt.ts > should skip binary files [6.63ms]
105
+ ✓ files-to-prompt.ts > should fail silently if isBinaryFile() gets called with invalid path [1.22ms]
106
+ ✓ files-to-prompt.ts > should skip FIFOs [16.55ms]
107
+ ✓ files-to-prompt.ts > should fail with error message if path does not exist [6.71ms]
108
+ ✓ files-to-prompt.ts > should parse file paths with parseFilePathsFromStdin() correctly [0.17ms]
109
+ ✓ files-to-prompt.ts > should de-duplicate file paths with parseFilePathsFromStdin() [0.04ms]
110
+ ✓ files-to-prompt.ts > should output version string when --version is passed [0.14ms]
111
+ ✓ files-to-prompt.ts > should output error for unsupported options [0.06ms]
108
112
--------------------|---------|---------|-------------------
109
113
File | % Funcs | % Lines | Uncovered Line #s
110
114
--------------------|---------|---------|-------------------
111
- All files | 90.91 | 94.33 |
112
- files-to-prompt.ts | 90.91 | 94.33 | 28,39,62,100,274-277
115
+ All files | 87.50 | 87.15 |
116
+ files-to-prompt.ts | 87.50 | 87.15 | 30,41,64,102,229-240,315-317,335-338
113
117
--------------------|---------|---------|-------------------
114
118
115
- 16 pass
119
+ 20 pass
116
120
0 fail
117
- 45 expect() calls
118
- Ran 16 tests across 1 files. [205 .00ms]
121
+ 51 expect() calls
122
+ Ran 20 tests across 1 files. [159 .00ms]
119
123
```
120
124
121
125
## Compatibility
0 commit comments