simonw/files-to-prompt được TopGit xếp vào nhóm dự án mã nguồn mở, với 2.8k sao trên GitHub, viết chủ yếu bằng Python. Concatenate a directory full of files into a single prompt for use with LLMs
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
--ignore <pattern>: Specify one or more patterns to ignore. Can be used multiple times. Patterns may match file names and directory names, unless you also specify --ignore-files-only. Pattern syntax uses fnmatch, which supports *, ?, [anychar], [!notchars] and [?] for special character literals.
my_directory/file1.txt
---
Contents of file1.txt
---
my_directory/file2.txt
---
Contents of file2.txt
---
my_directory/subdirectory/file3.txt
---
Contents of file3.txt
---
If you run files-to-prompt my_directory --include-hidden, the output will also include .hidden_file.txt:
my_directory/.hidden_file.txt
---
Contents of .hidden_file.txt
---
...
If you run files-to-prompt my_directory --ignore "*.log", the output will exclude temp.log:
my_directory/file1.txt
---
Contents of file1.txt
---
my_directory/file2.txt
---
Contents of file2.txt
---
my_directory/subdirectory/file3.txt
---
Contents of file3.txt
---
If you run files-to-prompt my_directory --ignore "sub*", the output will exclude all files in subdirectory/ (unless you also specify --ignore-files-only):
my_directory/file1.txt
---
Contents of file1.txt
---
my_directory/file2.txt
---
Contents of file2.txt
---
Reading from stdin
The tool can also read paths from standard input. This can be used to pipe in the output of another command:
# Find files modified in the last day
find . -mtime -1 | files-to-prompt
When using the --null (or -0) option, paths are expected to be NUL-separated (useful when dealing with filenames containing spaces):
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/simonw/files-to-prompt là nguồn chính thức.
simonw/files-to-prompt có bao nhiêu sao?
simonw/files-to-prompt có 2.8k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/simonw/files-to-prompt. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
simonw/files-to-prompt có phải mã nguồn mở không?
Có — simonw/files-to-prompt phát hành theo license Apache-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/simonw/files-to-prompt.
simonw/files-to-prompt có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho simonw/files-to-prompt. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
simonw/files-to-prompt là gì?
simonw/files-to-prompt (simonw/files-to-prompt) là dự án Python trên GitHub. Theo mô tả gốc: Concatenate a directory full of files into a single prompt for use with LLMs
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về files-to-prompt?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về files-to-prompt.