awslabs / aws-shell

An integrated shell for working with the AWS CLI.
Apache License 2.0
7.15k stars 770 forks source link

Multiline support? #194

Open ghost opened 6 years ago

ghost commented 6 years ago

Hi,

It would be nice to have bash-like multiline support. For example, suppose I'd like to get spot-price-history in Korea region, I type following in one line:

aws> ec2 describe-spot-price-history --region=ap-northeast-2 --instance-types c4.large --start-time=$(date +%s) --product-descriptions="Linux/UNIX" --query 'SpotPriceHistory[*].{az:AvailabilityZone, price:SpotPrice}'

But if doing same thing on presentation / tech sharing, my audience generally prefers this format (in bash):

aws ec2 describe-spot-price-history \
--region=ap-northeast-2 \
--instance-types c4.large \
--start-time=$(date +%s) \
--product-descriptions="Linux/UNIX" \
--query 'SpotPriceHistory[*].{az:AvailabilityZone, price:SpotPrice}'

Is it possible to do so in aws-shell?

joguSD commented 6 years ago

We currently don't support multiple lines. Marking this as a feature request.