Metadata-Version: 2.1
Name: krules-companion-sync
Version: 0.2.0
Summary: KRules Comapnion channels/triggers creation or updates from a yaml file
Author: Kevin Gichia
Author-email: Kevogich@live.com
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: PyYAML (>=6.0.1,<7.0.0)
Requires-Dist: firebase-admin (>=6.5.0,<7.0.0)
Requires-Dist: typer[all] (>=0.9.0,<0.10.0)
Description-Content-Type: text/markdown

# Firestore Trigger

Firestore Trigger is a CLI tool designed to automate the creation and updating of channels and triggers in Firestore based on configurations defined in a YAML file.


### Installation

1. Clone the repository:

```bash
git clone https://github.com/airspot-dev/cm-sync.git
cd cm-sync
```

2. Activate the Poetry shell:

```bash
poetry shell
```

3. Install dependencies using Poetry:

```bash
poetry install
```

## Usage

The tool provides commands for syncing channels and triggers with Firestore database.

### To Update:

- Using standard input (stdin)/pipe to pass the YAML content directly:

```bash
cat path/to/your/trigger.yaml | cm-sync
```

- Using a file path to specify the YAML file:

```bash
cm-sync -f path/to/your/trigger.yaml
```

