awslabs / aws-shell

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

Info Select & Rendering responses JSON #144

Closed joguSD closed 7 years ago

joguSD commented 7 years ago

Implements an Info Select interaction that will show the full JSON body of whatever option you're currently selecting in a similar fashion to the docs pane. I held off on adding this because I was unsure about how to safely render the responses as JSON because the json.dump method couldn't handle datetime objects. It seems the CLI also had this issue and implemented a json_encoder util method to handle it. I've refactored the wizards to use this in all places where something is being rendered as JSON.

@JordonPhillips @kyleknap @jamesls

screen shot 2016-07-27 at 17 08 14
JordonPhillips commented 7 years ago

Other than that one test, ⛵

JordonPhillips commented 7 years ago
--    .-""-.
   ) (     )
  (   )   (
     /     )
    (_    _)                     0_,-.__
      (_  )_                     |_.-._/
       (    )                    |_--..\
        (__)                     |__--_/
     |''   ``\                   |
     |        \                  |      /b.
     |         \  ,,,---===?A`\  |  ,==y'
   ___,,,,,---==""\        |M] \ | ;|\ |>
           _   _   \   ___,|H,,---==""""bno,
    o  O  (_) (_)   \ /          _     AWAW/
                     /         _(+)_  dMM/
      \@_,,,,,,---=="   \      \\|//  MW/
--''''"                         ===  d/
                                    //
                                    ,'__________________________
   \    \    \     \               ,/~~~~~~~~~~~~~~~~~~~~~~~~~~~
                         _____    ,'  ~~~   .-""-.~~~~~~  .-""-.
      .-""-.           ///==---   /`-._ ..-'      -.__..-'
            `-.__..-' =====\\\\\\ V/  .---\.
                      ~~~~~~~~~~~~, _',--/_.\  .-""-.
                            .-""-.___` --  \|         -.__..-