Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify output file #451

Open
pablog opened this issue Oct 6, 2016 · 3 comments
Open

Specify output file #451

pablog opened this issue Oct 6, 2016 · 3 comments
Labels
Milestone

Comments

@pablog
Copy link

pablog commented Oct 6, 2016

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

@adityatrivedi adityatrivedi added this to the Sprint 21 milestone Oct 16, 2016
@adityatrivedi
Copy link
Member

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

@adityatrivedi adityatrivedi modified the milestones: Sprint 21, Sprint 22 Nov 30, 2016
@romainbiard
Copy link

romainbiard commented Dec 21, 2016

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.

@adityatrivedi
Copy link
Member

adityatrivedi commented Jan 5, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants