-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----
split out cli validation from execution
A common pattern in our subcommands is to verify the arguments &
options before executing things. For some subcommands, that check
stage is quite long which makes the execution function even bigger.
Lets split that logic out of the execute phase so it's easier to
This is most noticeable in the sync subcommand whose Execute func
is quite large, and the option checking makes up ~15% of it.
The manifest command's Execute can be simplified significantly as
the optparse configuration always sets output_file to a string.
Reviewed-by: David Pursehouse <firstname.lastname@example.org>
Tested-by: Mike Frysinger <email@example.com>
12 files changed