[add] Improved install strategy
This commit is contained in:
parent
323d9a7b25
commit
4698b76a5e
16
README.md
16
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
|
||||
```
|
||||
|
@ -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:
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user