Skip to content

Add -validate option to CLI #19

@jorgepedret

Description

@jorgepedret

The only way to validate that your template works in Harp Platform is to compile the template and see if it shows any errors.

It'd be better to have a validate option to take care of that for you.

$ harp -validate
OK
$ harp -validate
{
  "status": 400,
  "message": "Template Render Error",
  "dump": {
    "path": "/Users/jorge/Dropbox/harp.io/apps/jorge.harp.io/public/index.jade"
  }
}
$ harp
...
validate [path] checks if project compiles correctly
...

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions