Export changed files grouped by change status (#23)

This commit is contained in:
Michal Dorner committed 2020-08-04 20:57:29 +02:00
1 parent 1ff702da35
commit f34047f516
5 files changed
+130 -32

No files matched your search

+4
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')