Use the formatting packages provided by docker/cli to comply with the official
formatting documentation.
https://docs.docker.com/config/formatting/
The use of the official formatting packages also fixes the format templating.
Fixes: #1175
Signed-off-by: Thomas Way <thomas@6f.io>
The --builder flag was being ignored by imagetools because of pointer
problems. Essentially, because the root cmds aren't parsed immediately,
we need to pass a pointer to the builder string so that it can be
updated before the RunE function gets called.
Signed-off-by: Justin Chadwell <me@jedevc.com>