tailor icon indicating copy to clipboard operation
tailor copied to clipboard

Specify output file

Open pablog opened this issue 8 years ago • 3 comments

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 >.

pablog avatar Oct 06 '16 01:10 pablog

Hey @pablog! This seems like a useful feature to add. We will try to get this added in a future release.

adityatrivedi avatar Oct 16 '16 05:10 adityatrivedi

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 avatar Dec 21 '16 22:12 romainbiard

@romainbiard noted! We will try to get working on this soon. But, we would appreciate community contributions :)

adityatrivedi avatar Jan 05 '17 05:01 adityatrivedi