donnemartin / saws

A supercharged AWS command line interface (CLI).
Other
5.24k stars 281 forks source link

Add option to choose fields to be displayed #46

Open mlimaloureiro opened 8 years ago

mlimaloureiro commented 8 years ago

When doing an ec2 ls for instance it would be nice to have an option to choose the fields we want to see, instead of using a grep

donnemartin commented 8 years ago

@mlimaloureiro interesting idea. Curious how the user would select which fields to display...perhaps an autocomplete or to show help in the completer or in-line?

In addition to grep, I think jq is also handy for filtering the output, if it's set to json.

The docs for awscli suggest something like this to show just the instance ids, which SAWS might make more convenient:

aws ec2 describe-instances --query "Reservations[].Instances[].[InstanceId]