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

json highlighting breaks variable capturing. #70

Open
empath opened this issue Dec 1, 2015 · 2 comments
Open

json highlighting breaks variable capturing. #70

empath opened this issue Dec 1, 2015 · 2 comments
Labels

Comments

@empath
Copy link

empath commented Dec 1, 2015

vpc=$(aws ec2 --region us-east-1 describe-vpcs --filters Name=tag:Name,Values=foo --query 'Vpcs[*].VpcId' --output text)

/bin/sh: -c: line 0: syntax error near unexpected token |' /bin/sh: -c: line 0:vpc=$(aws ec2 --region us-east-1 describe-vpcs --filters Name=tag:Name,Values=foo --query 'Vpcs[*].VpcId' --output text); | pygmentize -l json'

Also, copy-paste of a word-wrapped command adds new-lines.

both of those are pretty annoying if you're trying to chain the output of a few commands together.

@donnemartin donnemartin added the bug label Dec 2, 2015
@donnemartin
Copy link
Owner

@empath thanks for the bug report.

As a 'workaround', does turning off color output with the F2 key or updating your ~/.sawsrc prefs color_output allow you to run these commands?

# Use color output mode.
color_output = False

@empath
Copy link
Author

empath commented Dec 2, 2015

Yes, it does.

On Wednesday, December 2, 2015, Donne Martin [email protected]
wrote:

@empath https://github.com/empath thanks for the bug report.

As a workaround, does turning off color output with the F2 key or
updating your ~/.sawsrc prefs to disable color_output allow you to run
these commands?

Use color output mode.

color_output = False


Reply to this email directly or view it on GitHub
#70 (comment).

“The world is not comprehensible, but it is embraceable.”

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

2 participants