[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 ## Install
First, make sure `~/bin` exists and is in your PATH Install from the remote host
```bash ```bash
mkdir -p ~/bin pip3 install git+https://git.laziness.rocks/PootisPenserHere/code_to_prompt
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc # or ~/.zshrc if you use zsh
source ~/.bashrc # or source ~/.zshrc
``` ```
Create a symlink to the wrapper script Or download the repo and install from there
```bash ```bash
ln -s /full/path/to/your/project/code_to_prompt.sh ~/bin/code_to_prompt git clone https://git.laziness.rocks/PootisPenserHere/code_to_prompt
``` pip3 install 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
``` ```

View File

@ -68,7 +68,7 @@ def format_file_content(file_path: str, content: str) -> str:
Returns: Returns:
str: Formatted content with file path comment. 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: def should_ignore(name: str, ignore_patterns: List[str]) -> bool:
""" """