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

Specifying output format #109

Open
MadalenaP opened this issue Jun 16, 2017 · 3 comments
Open

Specifying output format #109

MadalenaP opened this issue Jun 16, 2017 · 3 comments

Comments

@MadalenaP
Copy link

php7cc -o json /path/to/my/directory/ | json_pp

-o does not work for me
I cannot see the errors. I just take the output of how many files where checked in how much time. Could you please help?

@sstalle
Copy link
Owner

sstalle commented Jun 17, 2017

Please provide the output of the command. Do you see any errors when executing the command without the -o json option?

@MadalenaP
Copy link
Author

Hi! When I execute "php7cc index.php " I get the result "Checked 1 file in 0.074 second".
When I execute "php7cc -o json index.php" I get the result "[Symfony\Component\Console\Exception\RuntimeException]
The "-o" option does not exist.

php7cc [-e|--extensions [EXTENSIONS]] [-x|--except [EXCEPT]] [-l|--level LEVEL] [-r|--relative-paths] [--integer-size INTEGER-SIZE] [--] ()..."

I would like to have the output you show in the ReadMe if possible. Thank you

@sstalle
Copy link
Owner

sstalle commented Jun 17, 2017

It looks like you are using one of the stable releases, but json output option is only available in the latest dev version.

If you have installed php7cc via composer, you can try executing

composer require sstalle/php7cc:dev-master

to update to the latest dev version.

If you have downloaded one of the prebuilt phar packages, then I'm afraid there is no available package for the version that you need. You can build one yourself if you really want to. You can look up the necessary commands under before_deploy section in .travis.yml

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

No branches or pull requests

2 participants