How to "snap get" root document

As discussed in our stand-up yesterday, I also suggest changing the default behavior so that it prints the list if multiple keys are provided instead of a json document as done today. Since we’re not sure whether we’d be breaking people’s scripts by doing that, I suggest phasing the change in by first only showing the list if stdout is a terminal, and if it’s not a terminal printing the following warning to stderr:

WARNING: The output of “snap get” will become a list with columns - use -j to force JSON output.

To support that, let’s introduce two new flags right away: -j and -l (second one is an L), which enable forcing the output to be json or list no matter whether it’s a terminal or whether one, two, or more options were provided.

Comments?