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

Console: please add flag to disable formatting #1238

Closed
jessegreathouse opened this issue Jun 7, 2011 · 3 comments
Closed

Console: please add flag to disable formatting #1238

jessegreathouse opened this issue Jun 7, 2011 · 3 comments

Comments

@jessegreathouse
Copy link

We run automated deployment and the log from our deployment software doesn't have the pretty colors that we get in the terminal:

^[[32mSyncing^[[0m ^[[33mDatabase^[[0m...
Dropping ^[[33medudirect_stage^[[0m on ^[[33m172.16.80.70^[[0m

^[[37;41m ^[[0m
^[[37;41m [Exception] ^[[0m
^[[37;41m You must pass the --force flag to drop the database ^[[0m
^[[37;41m ^[[0m

^[[32medudirect:sync [--em[="..."]] [--from[="..."]] [--to[="..."]] [--force] targets^[[0m

Its a bit of a strain to read logs that look like this. Please give us a flag that will disable output formatting.

@fabpot
Copy link
Member

fabpot commented Jun 8, 2011

How do you generate those? The Console automatically disables colors when not talking to an output that understands them.

@jessegreathouse
Copy link
Author

Im using phing for the scripting and the phing ssh task uses http://pecl.php.net/package/ssh2 for the remote client layer.

here's an example use case:
https://gist.github.com/88d69833e503bfea8e40

@fabpot fabpot closed this as completed in 740b2ac Jun 8, 2011
@jessegreathouse
Copy link
Author

tnx :-) ~!

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