Skip to content

Add event support for corral.json #144

@damon-kwok

Description

@damon-kwok

The Event allow Corral to trigger and run custom tasks as it processes commands.
The difference between it and Plugin is: the event only takes effect for the current project.

corral.json:

{
  "deps": [
    {
      "locator": "github.com/ponylang/valbytes.git",
      "version": "0.5.0"
    }
  ],
  "info": {}, 
  "event": [
    {
      "on_init": "echo 'corral init'",
      "on_build": "echo building",
      "on_clean": "echo clean",
      "on_fetch": "echo fetch",
      "on_update": "echo update",
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions