tailor
tailor copied to clipboard
Specify output file
I'd like to have a command option like --output-file [file-name]
.
The issue I have is that I need to run Tailor in Travis CI, generating a report file in JSON format, and then parsing it in order to get a code quality metric for my project.
The way I found to do this is: tailor [project-dir] -f json > [file-name]
, but Travis adds some more information from the command output to my JSON file:
The command bundle exec tailor [project-dir] -f json exited with 0.
Log:
{
"files": [
...
So when I try to parse my JSON file it fails.
I think there should be a cleaner way, like my example, to get an output file in which is not necessary to use >
.
Hey @pablog! This seems like a useful feature to add. We will try to get this added in a future release.
I have the same need but with jenkins and HTML format. I would like to have this "output-file" feature in my .tailor.yml file. Thanks and great work BTW.
@romainbiard noted! We will try to get working on this soon. But, we would appreciate community contributions :)