Powerlevel9k / powerlevel9k

Powerlevel9k was a tool for building a beautiful and highly functional CLI, customized for you. P9k had a substantial impact on CLI UX, and its legacy is now continued by P10k.
https://github.com/romkatv/powerlevel10k
MIT License
13.46k stars 949 forks source link

aws_eb_env does not work correctly with multiple environments in config.yml #1369

Open lordjavac opened 4 years ago

lordjavac commented 4 years ago

Describe Your Issue

When multiple branches have environment defined in .elasticbeanstalk/config.yml the result is a multiline string for the aws_eb_env.

Have you tried to debug or fix it?

This would be easy to fix by changing the manner in which we get the environment, but it would introduce a dependency on the eb command-line tool.

eb list | grep '^\*' | awk '{print $2}' 

This yields the current environment, if there is one. It also will not yield one if there isn't one for the current branch.

Environment Information