Optimized setup procedure
This commit is contained in:
10
Makefile
Normal file
10
Makefile
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
.PHONY: install setup
|
||||||
|
|
||||||
|
setup: install
|
||||||
|
@python main.py install
|
||||||
|
|
||||||
|
install:
|
||||||
|
@echo "Making 'main.py' executable..."
|
||||||
|
@chmod +x main.py
|
||||||
|
@echo "Installing packages from 'requirements.txt'..."
|
||||||
|
@pip install -r requirements.txt
|
||||||
13
README.md
13
README.md
@@ -24,22 +24,27 @@
|
|||||||
- **Custom Aliases:**
|
- **Custom Aliases:**
|
||||||
Generate and manage custom aliases for easy command invocation.
|
Generate and manage custom aliases for easy command invocation.
|
||||||
|
|
||||||
|
|
||||||
## Installation ⚙️
|
## Installation ⚙️
|
||||||
|
|
||||||
Clone the repository and make sure your `~/.local/bin` is in your system PATH:
|
Clone the repository and ensure your `~/.local/bin` is in your system PATH:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/kevinveenbirkenbach/package-manager.git
|
git clone https://github.com/kevinveenbirkenbach/package-manager.git
|
||||||
cd package-manager
|
cd package-manager
|
||||||
chmod +x main.py
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Then install or update your commands:
|
Then, run the following command to set up the project:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
./main.py install --all
|
make setup
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The `make setup` command will:
|
||||||
|
- Make `main.py` executable.
|
||||||
|
- Install required packages from `requirements.txt`.
|
||||||
|
- Execute `python main.py install` to complete the installation.
|
||||||
|
|
||||||
## Usage 📖
|
## Usage 📖
|
||||||
|
|
||||||
Run the script with different commands. For example:
|
Run the script with different commands. For example:
|
||||||
|
|||||||
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
yaml
|
||||||
Reference in New Issue
Block a user