You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't forget to make the script executable with `chmod +x ftp.ts` and move it to a location where it is accessible from your system's `$PATH` (optional).
@@ -114,60 +114,60 @@ This repository includes a comprehensive test script to ensure `files-to-prompt.
114
114
bun test --coverage
115
115
```
116
116
117
-
Recent test status (v0.4.2 using nbconvert-shim):
117
+
Recent test status (v0.4.3 using nbconvert-shim):
118
118
119
119
```
120
120
bun test v1.1.4 (fbe2fe0c)
121
121
122
122
files-to-prompt.test.ts:
123
-
✓ files-to-prompt.ts > should include single file passed on the command line [11.92ms]
124
-
✓ files-to-prompt.ts > should include multiple files passed on the command line [7.18ms]
125
-
✓ files-to-prompt.ts > should include files in directories passed on the command line [7.51ms]
126
-
✓ files-to-prompt.ts > should include files a few levels deep in a directory structure [6.68ms]
127
-
✓ files-to-prompt.ts > should exclude files matching patterns passed via --ignore [6.60ms]
128
-
✓ files-to-prompt.ts > should exclude files matching patterns passed via multiple --ignore [7.53ms]
129
-
✓ files-to-prompt.ts > should fail when --ignore gets passed without an argument [6.17ms]
130
-
✓ files-to-prompt.ts > should exclude files matching patterns in .gitignore [7.00ms]
131
-
✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore [8.17ms]
132
-
✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore in different directories [6.90ms]
133
-
✓ files-to-prompt.ts > should include hidden files and directories when --include-hidden is passed [6.94ms]
134
-
✓ files-to-prompt.ts > should ignore .gitignore files when --ignore-gitignore is passed [7.97ms]
135
-
✓ files-to-prompt.ts > should skip binary files [6.69ms]
136
-
✓ files-to-prompt.ts > should fail silently if isBinaryFile() gets called with invalid path [1.26ms]
137
-
✓ files-to-prompt.ts > should skip FIFOs [16.56ms]
138
-
✓ files-to-prompt.ts > should fail with error message if path does not exist [6.73ms]
139
-
✓ files-to-prompt.ts > should parse file paths with parseFilePathsFromStdin() correctly [0.28ms]
123
+
✓ files-to-prompt.ts > should include single file passed on the command line [16.14ms]
124
+
✓ files-to-prompt.ts > should include multiple files passed on the command line [7.12ms]
125
+
✓ files-to-prompt.ts > should include files in directories passed on the command line [9.04ms]
126
+
✓ files-to-prompt.ts > should include files a few levels deep in a directory structure [6.57ms]
127
+
✓ files-to-prompt.ts > should exclude files matching patterns passed via --ignore [8.16ms]
128
+
✓ files-to-prompt.ts > should exclude files matching patterns passed via multiple --ignore [6.66ms]
129
+
✓ files-to-prompt.ts > should fail when --ignore gets passed without an argument [6.71ms]
130
+
✓ files-to-prompt.ts > should exclude files matching patterns in .gitignore [7.38ms]
131
+
✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore [6.56ms]
132
+
✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore in different directories [7.55ms]
133
+
✓ files-to-prompt.ts > should include hidden files and directories when --include-hidden is passed [6.63ms]
134
+
✓ files-to-prompt.ts > should ignore .gitignore files when --ignore-gitignore is passed [7.27ms]
135
+
✓ files-to-prompt.ts > should skip binary files [7.06ms]
136
+
✓ files-to-prompt.ts > should fail silently if isBinaryFile() gets called with invalid path [0.18ms]
137
+
✓ files-to-prompt.ts > should skip FIFOs [21.57ms]
138
+
✓ files-to-prompt.ts > should fail with error message if path does not exist [6.55ms]
139
+
✓ files-to-prompt.ts > should parse file paths with parseFilePathsFromStdin() correctly [0.55ms]
140
140
✓ files-to-prompt.ts > should de-duplicate file paths with parseFilePathsFromStdin() [0.05ms]
141
141
✓ files-to-prompt.ts > should parse file paths with one file path per line [0.06ms]
142
142
✓ files-to-prompt.ts > should handle mixed input formats [0.03ms]
143
143
✓ files-to-prompt.ts > should handle empty lines in stdin data [0.02ms]
144
-
✓ files-to-prompt.ts > should handle binary data in stdin [0.08ms]
144
+
✓ files-to-prompt.ts > should handle binary data in stdin [0.35ms]
145
145
✓ files-to-prompt.ts > should handle common text/code files in stdin [0.04ms]
146
146
✓ files-to-prompt.ts > should handle long file paths in stdin [0.23ms]
147
-
✓ files-to-prompt.ts > should ignore file paths with the null character [0.03ms]
148
-
✓ files-to-prompt.ts > should ignore file paths with control characters [0.04ms]
149
-
✓ files-to-prompt.ts > should output version string when --version is passed [0.08ms]
150
-
✓ files-to-prompt.ts > should output error for unsupported options [0.06ms]
151
-
✓ files-to-prompt.ts > should output to a file when --output is passed [6.54ms]
152
-
✓ files-to-prompt.ts > should output to a file when -o is passed [7.36ms]
153
-
✓ files-to-prompt.ts > should output error if --output is passed without a file path [5.92ms]
154
-
✓ files-to-prompt.ts > should output error if -o is passed without a file path [6.63ms]
155
-
✓ files-to-prompt.ts > should output error if output file cannot be written [6.05ms]
156
-
✓ files-to-prompt.ts > should include .ipynb files verbatim whitout --nbconvert [7.55ms]
157
-
✓ files-to-prompt.ts > should include .ipynb files verbatim when --nbconvert is set to invalid command [10.62ms]
158
-
✓ files-to-prompt.ts > should convert .ipynb files to ASCII when --nbconvert --format asciidoc is passed [54.86ms]
159
-
✓ files-to-prompt.ts > should convert .ipynb files to Markdown when --nbconvert --format markdown is passed [41.69ms]
147
+
✓ files-to-prompt.ts > should ignore file paths with the null character [0.04ms]
148
+
✓ files-to-prompt.ts > should ignore file paths with control characters [0.03ms]
149
+
✓ files-to-prompt.ts > should output version string when --version is passed [0.10ms]
150
+
✓ files-to-prompt.ts > should output error for unsupported options [0.05ms]
151
+
✓ files-to-prompt.ts > should output to a file when --output is passed [6.48ms]
152
+
✓ files-to-prompt.ts > should output to a file when -o is passed [6.44ms]
153
+
✓ files-to-prompt.ts > should output error if --output is passed without a file path [5.84ms]
154
+
✓ files-to-prompt.ts > should output error if -o is passed without a file path [5.92ms]
155
+
✓ files-to-prompt.ts > should output error if output file cannot be written [6.04ms]
156
+
✓ files-to-prompt.ts > should include .ipynb files verbatim whitout --nbconvert [7.39ms]
157
+
✓ files-to-prompt.ts > should include .ipynb files verbatim when --nbconvert is set to invalid command [12.06ms]
158
+
✓ files-to-prompt.ts > should convert .ipynb files to ASCII when --nbconvert --format asciidoc is passed [61.49ms]
159
+
✓ files-to-prompt.ts > should convert .ipynb files to Markdown when --nbconvert --format markdown is passed [58.18ms]
0 commit comments