diff --git a/README.md b/README.md index b982414..bf1506e 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/code_to_prompt/app.py b/code_to_prompt/app.py index fdb2924..e9ebddf 100644 --- a/code_to_prompt/app.py +++ b/code_to_prompt/app.py @@ -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: """