From 69e994005c4c26323fea430415222e6b91b95a5d Mon Sep 17 00:00:00 2001 From: "Filippo Leone @North" Date: Tue, 16 Apr 2024 19:44:54 +0200 Subject: [PATCH 1/5] Update README.md Updated args --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ee81a57..489875f 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ This allows you to modify the project and see changes without reinstalling the p Run the script by navigating to the project directory and using the following command: -`llm_code_prompter [target_folder]` +`llm_code_prompter [target_folder] [file_pattern] [exclude_pattern] [platform]` Where `[target_folder]` is the path to the directory containing the files you want to include in your prompt. From 04ddf7566ba53a3c9b22a8e7d5b0cb62156be745 Mon Sep 17 00:00:00 2001 From: "Filippo Leone @North" Date: Tue, 16 Apr 2024 19:45:59 +0200 Subject: [PATCH 2/5] Update README.md Added more docs --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 489875f..6c19c9f 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,21 @@ Run the script by navigating to the project directory and using the following co `llm_code_prompter [target_folder] [file_pattern] [exclude_pattern] [platform]` -Where `[target_folder]` is the path to the directory containing the files you want to include in your prompt. +Where: + + [target_folder] is the path to the directory containing the files you want to include in your prompt. + [file_pattern] is the pattern to match the files you want to include (default is "*.py"). + [exclude_pattern] is a comma-separated list of file paths or patterns to exclude (default is empty). + [platform] is the target platform for the clipboard operation (default is determined automatically). + +Example usage: + +llm_code_prompter /path/to/directory +llm_code_prompter /path/to/directory "*.py" +llm_code_prompter /path/to/directory "*.py" "tests/,__pycache__/" +llm_code_prompter /path/to/directory "*.py" "tests/,__pycache__/" win32 + +The script will read the contents of the specified directory, including any optional files (like OBJECTIVE.md and PROMPT.md), and then concatenate the contents of all the matching Python files. The resulting text will be copied to the system clipboard, so you can paste it into your LLM prompt. ## Development From 4087bad80ca5d7a6e43fa564cd66c65a11cf47a3 Mon Sep 17 00:00:00 2001 From: "Filippo Leone @North" Date: Tue, 16 Apr 2024 19:46:37 +0200 Subject: [PATCH 3/5] Update README.md Fixed formatting --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 6c19c9f..67006da 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,11 @@ Where: Example usage: llm_code_prompter /path/to/directory + llm_code_prompter /path/to/directory "*.py" + llm_code_prompter /path/to/directory "*.py" "tests/,__pycache__/" + llm_code_prompter /path/to/directory "*.py" "tests/,__pycache__/" win32 The script will read the contents of the specified directory, including any optional files (like OBJECTIVE.md and PROMPT.md), and then concatenate the contents of all the matching Python files. The resulting text will be copied to the system clipboard, so you can paste it into your LLM prompt. From ed27c8364f928931cf938d851e9a3bd2b918444d Mon Sep 17 00:00:00 2001 From: "Filippo Leone @North" Date: Tue, 16 Apr 2024 19:47:14 +0200 Subject: [PATCH 4/5] Update README.md Formatting --- README.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 67006da..5b8b47a 100644 --- a/README.md +++ b/README.md @@ -43,13 +43,10 @@ Where: Example usage: -llm_code_prompter /path/to/directory - -llm_code_prompter /path/to/directory "*.py" - -llm_code_prompter /path/to/directory "*.py" "tests/,__pycache__/" - -llm_code_prompter /path/to/directory "*.py" "tests/,__pycache__/" win32 + llm_code_prompter /path/to/directory + llm_code_prompter /path/to/directory "*.py" + llm_code_prompter /path/to/directory "*.py" "tests/,__pycache__/" + llm_code_prompter /path/to/directory "*.py" "tests/,__pycache__/" win32 The script will read the contents of the specified directory, including any optional files (like OBJECTIVE.md and PROMPT.md), and then concatenate the contents of all the matching Python files. The resulting text will be copied to the system clipboard, so you can paste it into your LLM prompt. From f40729d748bb45eba91949a407bf15ffb6ee564c Mon Sep 17 00:00:00 2001 From: "Filippo Leone @North" Date: Tue, 16 Apr 2024 19:50:08 +0200 Subject: [PATCH 5/5] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 5b8b47a..75789da 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,8 @@ Example usage: The script will read the contents of the specified directory, including any optional files (like OBJECTIVE.md and PROMPT.md), and then concatenate the contents of all the matching Python files. The resulting text will be copied to the system clipboard, so you can paste it into your LLM prompt. +![immagine](https://github.com/FilippoLeone/llm_code_prompter/assets/29985813/b2ddc615-0394-4b6a-977f-573554a3f415) + ## Development This project is developed using Python 3.9+. It adheres to PEP standards and utilizes type hinting to ensure code quality and maintainability.