Sync

Organising your Extra Horizon configuration

The exh client has a global sync command for synchronizing your Schema, Tasks, Templates and Dispatchers using a single command.

exh sync

will sync your current directory. While

exh sync --path /your/path/here

will allow you to specify exactly which directory you want to sync, by default the CLI will try to sync the Extra Horizon configuration using a default file structure.

Default configuration

The Extra Horizon CLI by default will execute the relevant commands for these subfolders:

CommandPath

./schemas

./templates

./tasks

./dispatchers.json

Custom configuration

In case this is not the directory layout you prefer, these locations can be customized by creating a repo-config.json in the top directory. Example:

{
  "schemas": [
    "/path/to/my-schemas",
    "/another/path/to/schemas"
  ],
  "templates": [
    "./templates"
  ],
  "tasks": [
    "/path/to/tasks",
    "/another/path/to/tasks"
  ]
}

Dispatchers are expected to always exist within a root file named dispatchers.json

Last updated