[add] Improved install strategy

This commit is contained in:
Jose Pablo Domingo Aramburo Sanchez 2024-08-09 16:09:24 -07:00
parent 323d9a7b25
commit 4698b76a5e
2 changed files with 6 additions and 12 deletions

View File

@ -1,18 +1,12 @@
## Install
First, make sure `~/bin` exists and is in your PATH
Install from the remote host
```bash
mkdir -p ~/bin
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc # or ~/.zshrc if you use zsh
source ~/.bashrc # or source ~/.zshrc
pip3 install git+https://git.laziness.rocks/PootisPenserHere/code_to_prompt
```
Create a symlink to the wrapper script
Or download the repo and install from there
```bash
ln -s /full/path/to/your/project/code_to_prompt.sh ~/bin/code_to_prompt
```
Now you can run your script from anywhere by simply typing:
```bash
code_to_prompt --path /path/to/process --ignore custom_folder
git clone https://git.laziness.rocks/PootisPenserHere/code_to_prompt
pip3 install code_to_prompt
```

View File

@ -68,7 +68,7 @@ def format_file_content(file_path: str, content: str) -> str:
Returns:
str: Formatted content with file path comment.
"""
return f"********** {file_path}********** \n{content}\n\n"
return f"********** {file_path} **********\n{content}\n\n"
def should_ignore(name: str, ignore_patterns: List[str]) -> bool:
"""