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

Add --verbose flag, setting verbose app env option #448

Merged

Conversation

srenatus
Copy link
Contributor

@srenatus srenatus commented Jun 6, 2017

Now with the corresponding elvis_core PR, it'll behave as follows:

$ elvis --output-format plain --verbose rock
Loading files...
Loading src/elvis.erl
Loading src/elvis_git.erl
Loading src/elvis_webhook.erl
Loading test/elvis_SUITE.erl
Loading test/elvis_meta_SUITE.erl
Loading test/git_SUITE.erl
Loading test/xref_SUITE.erl
Applying rules...
# src/elvis.erl [FAIL]
  - no_tabs
    - Line 18 has a tab at column 0.
# src/elvis_git.erl [OK]
# src/elvis_webhook.erl [OK]
# test/elvis_SUITE.erl [OK]
# test/elvis_meta_SUITE.erl [OK]
# test/git_SUITE.erl [OK]
# test/xref_SUITE.erl [OK]
Loading files...
Applying rules...
Loading files...
Loading rebar.config
Applying rules...
# rebar.config [OK]
Loading files...
Loading elvis.config
Applying rules...
# elvis.config [OK]
$

vs

$ elvis --output-format plain rock
# src/elvis.erl [FAIL]
  - no_tabs
    - Line 18 has a tab at column 0.
$

I've also thought that it might make sense to expose the existing no_output app env setting, via -q:

$ elvis -q rock
$ echo $?
1
$

srenatus added 3 commits June 6, 2017 09:48
Signed-off-by: Stephan Renatus <[email protected]>
This would suppress _all output_ -- exposing an elvis app env var that
already exists.

Signed-off-by: Stephan Renatus <[email protected]>
@srenatus
Copy link
Contributor Author

srenatus commented Jun 6, 2017

Fixes #447.

@elbrujohalcon elbrujohalcon merged commit 2a42880 into inaka:master Jun 6, 2017
@srenatus srenatus deleted the sr/add-verbosity-to-cli-options branch June 6, 2017 13:18
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

Successfully merging this pull request may close these issues.

2 participants