{
	"Create file writer class": {
		"scope": "typescript",
		"prefix": "mb-fwc",
		"body":[
			"import { stripIndent } from \"common-tags\";",
			"import { FileWriter } from \"../../base\";",
			"import { IFileWriter, TFileWriterConfig } from \"../../types\";",
			"import { GlobalHelpers } from \"../../../helpers\";",
			"import { AppConfig } from \"../../../../app-config\";",
			"",
			"class ${1:ClassName} extends FileWriter implements IFileWriter {",
			"",
			"\tconstructor(protected config: TFileWriterConfig) {",
			"\t\tsuper(config);",
			"\t}",
			"",
			"\tgetFileContent() {",
			"",
			"\t\tlet fileContent = \"\";",
			"",
			"\t\tfileContent = stripIndent``;",
			"",
			"\t\treturn fileContent;",
			"\t}",
			"",
			"\texecute() {",
			"\t\ttry {",
			"\t\t\tthis.write($2);",
			"\t\t} catch (error) {",
			"\t\t\tGlobalHelpers.showError(error);",
			"\t\t}",
			"\t}",
			"}",
			"",
			"export { ${1:ClassName} };",
			"$0"
		],
		"description": "Create file writer class"
	}
}