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 a verbose flag for debugging #8

Closed
frankcarey opened this issue Dec 2, 2015 · 1 comment
Closed

Add a verbose flag for debugging #8

frankcarey opened this issue Dec 2, 2015 · 1 comment

Comments

@frankcarey
Copy link
Contributor

It's super handy to know what command is actually being run, especially when debugging commands. I'm using it locally and it looks like this. Especially useful when calling ahoy commands from another command like is shown here.

I think it would be good to implement with a -v flag. One thing I would add is the command that's actually called behind the scenes.

$ ahoy echo-test test
2015/12/01 19:23:22 run command:  ahoy echo-success "'quotes'" && ahoy echo-fail "'quotes'" && ahoy echo-maybe "'quotes'"
2015/12/01 19:23:22 run command:  echo "'quotes'"
'quotes'
2015/12/01 19:23:22 run command:  echo 'quotes'
quotes
2015/12/01 19:23:22 run command:  echo "'quotes'"
'quotes'
frankcarey pushed a commit that referenced this issue Dec 7, 2015
… loaded from and the name of the command.
@frankcarey
Copy link
Contributor Author

Fixed, there is now a --verbose flag you can set, or an $AHOY_VERBOSE environment variable you can use.

frankcarey pushed a commit that referenced this issue Dec 8, 2015
… it was loaded from and the name of the command.
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

1 participant