@@ -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.2.0 /files-to-prompt.ts > ftp.ts
28
+ curl https://jsr.io/@fry69/files-to-prompt-ts/0.2.1 /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.2.0 /files-to-prompt.ts > ftp.ts
34
+ curl https://raw.githubusercontent.com/fry69/files-to-prompt-ts/v0.2.1 /files-to-prompt.ts > ftp.ts
35
35
` ` `
36
36
37
37
3. Make the script executable with ` chmod +x ftp.ts`
@@ -83,43 +83,51 @@ 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.2.0 ):
86
+ Recent test status (v0.2.1 ):
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 [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]
92
+ ✓ files-to-prompt.ts > should include single file passed on the command line [11.59ms]
93
+ ✓ files-to-prompt.ts > should include multiple files passed on the command line [6.86ms]
94
+ ✓ files-to-prompt.ts > should include files in directories passed on the command line [7.73ms]
95
+ ✓ files-to-prompt.ts > should include files a few levels deep in a directory structure [6.64ms]
96
+ ✓ files-to-prompt.ts > should exclude files matching patterns passed via --ignore [6.61ms]
97
+ ✓ files-to-prompt.ts > should exclude files matching patterns passed via multiple --ignore [6.47ms]
98
+ ✓ files-to-prompt.ts > should fail when --ignore gets passed without an argument [5.89ms]
99
+ ✓ files-to-prompt.ts > should exclude files matching patterns in .gitignore [6.75ms]
100
+ ✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore [8.17ms]
101
+ ✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore in different directories [6.77ms]
102
+ ✓ files-to-prompt.ts > should include hidden files and directories when --include-hidden is passed [6.85ms]
103
+ ✓ files-to-prompt.ts > should ignore .gitignore files when --ignore-gitignore is passed [7.62ms]
104
+ ✓ files-to-prompt.ts > should skip binary files [6.88ms]
105
+ ✓ files-to-prompt.ts > should fail silently if isBinaryFile() gets called with invalid path [1.14ms]
106
+ ✓ files-to-prompt.ts > should skip FIFOs [20.92ms]
107
+ ✓ files-to-prompt.ts > should fail with error message if path does not exist [6.70ms]
108
+ ✓ files-to-prompt.ts > should parse file paths with parseFilePathsFromStdin() correctly [0.32ms]
109
+ ✓ files-to-prompt.ts > should de-duplicate file paths with parseFilePathsFromStdin() [0.06ms]
110
+ ✓ files-to-prompt.ts > should parse file paths with one file path per line [0.07ms]
111
+ ✓ files-to-prompt.ts > should handle mixed input formats [0.03ms]
112
+ ✓ files-to-prompt.ts > should handle empty lines in stdin data [0.03ms]
113
+ ✓ files-to-prompt.ts > should handle binary data in stdin [0.09ms]
114
+ ✓ files-to-prompt.ts > should handle common text/code files in stdin [0.04ms]
115
+ ✓ files-to-prompt.ts > should handle long file paths in stdin [0.26ms]
116
+ ✓ files-to-prompt.ts > should ignore file paths with the null character [0.04ms]
117
+ ✓ files-to-prompt.ts > should ignore file paths with control characters [0.03ms]
118
+ ✓ files-to-prompt.ts > should output version string when --version is passed [0.10ms]
111
119
✓ files-to-prompt.ts > should output error for unsupported options [0.06ms]
112
120
--------------------|---------|---------|-------------------
113
121
File | % Funcs | % Lines | Uncovered Line #s
114
122
--------------------|---------|---------|-------------------
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
123
+ All files | 88.00 | 88.38 |
124
+ files-to-prompt.ts | 88.00 | 88.38 | 30,41,64,102,229-240,349-351,369-372
117
125
--------------------|---------|---------|-------------------
118
126
119
- 20 pass
127
+ 28 pass
120
128
0 fail
121
- 51 expect() calls
122
- Ran 20 tests across 1 files. [159 .00ms]
129
+ 59 expect() calls
130
+ Ran 28 tests across 1 files. [165 .00ms]
123
131
```
124
132
125
133
## Compatibility
0 commit comments