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