Closed tpakeman closed 4 years ago
Potentially could implement something like this as it seems that filetypes are not really used apart from as metadata:
if self.name.endswith(".model.lkml"):
...
else:
if self.name.endswith('lkml'):
self.filetype = self.name.split('.')[-2]
else:
raise Exception("Unsupported filename " + self.name)
Makes sense! Will do
It would be great to support arbitrary file extensions that end
.lkml
rather than throwing an exception (lookml.py line 629). I have worked on projects where people use all sorts of file types for organisation, likefoo.tests.lkml
orbar.datagroups.lkml