55 lines
948 B
Markdown
55 lines
948 B
Markdown
# Project Manager
|
|
|
|
Automatically detects modules and executes commands
|
|
|
|
Supported types:
|
|
|
|
- python (poetry)
|
|
- nodejs (npm)
|
|
- docker
|
|
|
|
## Install
|
|
|
|
```bash
|
|
pipx install project-manager -i https://git.shmyga.ru/api/packages/InfernalGames/pypi/simple/ --pip-args="--extra-index-url https://pypi.org/simple"
|
|
```
|
|
|
|
## Usage
|
|
|
|
### Show tasks list
|
|
|
|
```bash
|
|
pm [-v] [-vv]
|
|
```
|
|
|
|

|
|
|
|
### Run task
|
|
|
|
```bash
|
|
pm <task>[:<tag>][:<sub_tag>] [-v] [-vv]
|
|
```
|
|
|
|

|
|

|
|
|
|
## Preset format
|
|
|
|
### Template
|
|
|
|
```toml
|
|
[presets.<tag>.tasks.<task>.<type>]
|
|
conditions = ["<condition>"]
|
|
commands = ["<command>"]
|
|
```
|
|
|
|
### Examples
|
|
|
|
[Default presets](./project_manager/preset/default)
|
|
|
|
## Presets locations
|
|
|
|
- default presets [`project_manager/preset/default/*.toml`](./project_manager/preset/default)
|
|
- user preset `$HOME/.pm.toml`
|
|
- project preset `./.pm.toml`
|