Currently only the json flag can be set in the options for runFta. Adding more or all options could be helpful.
Adding options currently exposed to the CLI should be straightforward. For other config options I think #63 should be implemented before implementing this issue. Otherwise, I don't see a way of executing runFta without creating a fta.json for every run.
Additionally, I think changing the exported functions could be beneficial. Currently runFta always returns a string, either containing a formatted table or an array of AnalyzedFile as a string. Automatically converting the array would be helpful. Also, exposing two different functions could help create a clearer interface. Otherwise, every call of runFta would require a check or an explicit cast, even though the expected type is likely obvious from the context.
Other ideas are of course welcome!
Currently only the
jsonflag can be set in the options forrunFta. Adding more or all options could be helpful.Adding options currently exposed to the CLI should be straightforward. For other config options I think #63 should be implemented before implementing this issue. Otherwise, I don't see a way of executing
runFtawithout creating afta.jsonfor every run.Additionally, I think changing the exported functions could be beneficial. Currently
runFtaalways returns a string, either containing a formatted table or an array ofAnalyzedFileas a string. Automatically converting the array would be helpful. Also, exposing two different functions could help create a clearer interface. Otherwise, every call ofrunFtawould require a check or an explicit cast, even though the expected type is likely obvious from the context.Other ideas are of course welcome!