Export changed files grouped by change status (#23)

This commit is contained in:
Michal Dorner 2020-07-11 23:33:11 +02:00
parent 1ff702da35
commit f34047f516
No known key found for this signature in database
GPG key ID: 9EEE04B48DA36786
5 changed files with 130 additions and 32 deletions

View file

@ -35,6 +35,10 @@ export default class Filter {
// Load rules from YAML string
load(yaml: string): void {
if (!yaml) {
return
}
const doc = jsyaml.safeLoad(yaml) as FilterYaml
if (typeof doc !== 'object') {
this.throwInvalidFormatError('Root element is not an object')