Skip to content

Commit

Permalink
EXAMPLES: Add yaml config example.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cian911 committed Jan 4, 2022
1 parent 1a4d130 commit 59ea81c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions examples/yaml/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Yaml Config

Switchboard can also with a config.yaml file. See below for an example configuration.

```bash
watchers:
- path: "/home/user/input"
destination: "/home/user/output"
ext: ".txt"
- path: "/home/user/downloads"
destination: "/home/user/movies"
ext: ".mp4"
```

With the content above, create a `config.yaml` file. You can then pass it as a flag to switchboard like so:

```bash
switchboard watch --config config.yaml

###
Using config file: yaml/config.yaml
2022/01/04 22:53:15 Observing
```

0 comments on commit 59ea81c

Please sign in to comment.